LBitmapBase::DupPalette

Summary

Retrieves a copy of either the specified HPALETTE, or the bitmap's palette.

Syntax

#include "ltwrappr.h"

virtual HPALETTE LBitmapBase::DupPalette(hPalette=0)

Parameters

HPALETTE hPalette

Handle of the palette to be duplicated. If you want to get a copy of the bitmap's palette, pass NULL.

Returns

The duplicated palette handle. If you pass NULL for hPalette, and the bitmap does not have a palette, then the return value is NULL.

Comments

Use this function to retrieve a copy of either the specified HPALETTE, or the bitmap's palette. This function makes a copy of the specified palette, so you must delete it (using DeleteObject) when you are finished with it.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LBitmapBase::SetPalette.

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++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.