Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LBitmapBase::CreatePaintPalette

Show in webframe

#include "ltwrappr.h"

virtual HPALETTE LBitmapBase::CreatePaintPalette(hDC)

HDC hDC;

/* handle of a device context */

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

Parameter

Description

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

LTDIS
LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LBitmapBase::SetPalette, LBitmapBase::GetPalette, LBitmapBase::DupPalette, LBitmapBase::GetFixedPalette

Topics:

Raster Image Functions: Displaying Images

 

Handling Palette Changes

Example

For an example, refer to LBitmapBase::SetPalette.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.