L_DoubleBufferEnd

Summary

Displays the double buffered paint operations.

Syntax

#include "l_bitmap.h"

L_LTDIS_API L_INT L_DoubleBufferEnd(hDoubleBufferHandle, hDC)

Parameters

L_HANDLE hDoubleBufferHandle

Handle that identifies the double buffering process.

L_HDC hDC

Handle to the original target device context.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Use L_DoubleBufferEnd when ready to paint all that has been double-buffered to the target hDC. 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, which in this case should be the same as the hDC argument that was passed to L_DoubleBufferBegin.

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

Platforms

Win32, x64.

See Also

Functions

Topics

Example

To see how double buffering can be used in an application, see the source code for the API annotation demo.
This sample illustrates double buffering by bouncing a ball around a window that contains an image
For simplicity, we assume both the window the hDC are 24 bit
Run the example twice --

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.