#include "l_bitmap.h"
L_LTDIS_API L_HDC L_DoubleBufferBegin(hDoubleBufferHandle, hDC, cx, cy)
Returns a memory hDC that is used in the double buffering process.
Handle that identifies the double buffering process.
Handle to the target device context.
Width in pixels, of the target device context.
Height, in pixels, of the target device context.
Value | Meaning |
---|---|
<> 0 | Memory hDC to use for double buffered paints. |
0 | The function failed. |
Use L_DoubleBufferBegin to begin a double buffering process. All double buffered paint operations should be wrapped in L_DoubleBufferBegin and L_DoubleBufferEnd calls.
The hDC argument is the device context that you want to double buffer. The arguments cx
and cy
specify the pixel dimensions of the hDC
. If the call to L_DoubleBufferBegin is successful, a memory hDC is returned. Use this memory hDC for all subsequent paint operations. When you want the result of the memory hDC to appear on the target hDC, call L_DoubleBufferEnd.
Note that you must create a double buffer handle with L_DoubleBufferCreateHandle before calling this function.
For more information, see the topic Minimizing Flicker With Double Buffering.
Required DLLs and Libraries
Win32, x64.
To see how double buffering can be used in an application, see the source code for the API annotation demo.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document