LBitmapBase::CreatePaintPalette

Summary

Creates a paint palette for the bitmap for the specified device context.

Syntax

#include "ltwrappr.h"

virtual HPALETTE LBitmapBase::CreatePaintPalette(hDC)

Parameters

HDC hDC

Handle of the Windows device context, to be used for creating the paint palette.

Returns

The new palette handle.

If the bitmap does not need a palette to be painted, this function returns NULL.

Comments

Use this function to create a paint palette for the bitmap, for the specified device context. This will update the internal palette for this bitmap with the newly created one. The return value is the handle of the created palette. You should not delete this handle because it will be used when painting the bitmap.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LBitmapBase::SetPalette.

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

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.