![]() |
MKI_BitmapLoadResourcePNG (Bitmaps) Changed in Version 2015.2 |
www.CAD6.com |
C++ SyntaxMKI_BITMAP_PTR MKI_BitmapLoadResourcePNG( HINSTANCE f_hInstance, const LPCWSTR f_pszResName );
Loads a PNG bitmap from a resource file into memory as a 32-bit RGBA bitmap and returns its address. This address is NOT a standard Windows bitmap handle!
If no longer used, the bitmap memory must be freed using MKI_BitmapFreeImage.
ParametersInstance [HINSTANCE] Handle of the instance of the resource file (e.g. executable file or DLL) that contains the resource to be loaded. ResName [const LPCWSTR] Name of the PNG resource in the file. It must have been declared as resource type "PNG" (instead of, e.g., "BITMAP") in the resource file.
Return ValueReturns a non-zero bitmap address if successful. This handle identifies a 32-bit RGBA bitmap and can be passed on to a MKI_ICON_DATA structure.
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH