virtual HPALETTE LBitmapBase::DupPalette(hPalette=0)
Retrieves a copy of either the specified HPALETTE, or the bitmap's palette.
Handle of the palette to be duplicated. If you want to get a copy of the bitmap's palette, pass NULL.
The duplicated palette handle. If you pass NULL for hPalette, and the bitmap does not have a palette, then the return value is NULL.
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.
Win32, x64.
For an example, refer to LBitmapBase::SetPalette.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document