virtual HPALETTE LBitmapBase::CreatePaintPalette(hDC)
Creates a paint palette for the bitmap for the specified device context.
Handle of the Windows device context, to be used for creating the paint palette.
The new palette handle.
If the bitmap does not need a palette to be painted, this function returns NULL.
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.
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