L_DoubleBufferEnable

#include "l_bitmap.h"

L_LTDIS_API L_INT L_DoubleBufferEnable(hDoubleBufferHandle, bEnable)

Enables or disables double buffering.

Parameters

L_HANDLE hDoubleBufferHandle

Handle that identifies the double buffering process.

L_BOOL bEnable

Value that specifies whether to enable double buffering. Possible values are:

Value Meaning
TRUE Enable double buffering.
FALSE Disable double buffering.

Returns

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

Comments

This function enables or disables a double buffering process. This function should be used after the double buffering process is already in place. This means that the double buffering handle should already be created, and all paint calls should already be wrapped in L_DoubleBufferBegin and L_DoubleBufferEnd pairs.

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.

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

LEADTOOLS Raster Imaging C API Help