Remaps the standard gray colors in a bitmap resource with the system grays.
function CreateGrayMappedRes(Instance: THandle; ResName: PChar): HBITMAP;
HBITMAP CreateGrayMappedRes(THandle Instance, const char * ResName);
Graphics
Call CreateGrayMappedRes to create a bitmap that uses the system gray colors (clBtnHightlight, clBtnFace, clBtnShadow and clBtnText) from a resourced bitmap that uses standard gray scale colors (clWhite, clSilver, clGray, and clBlack). This allows an application to dynamically create images that match the user's control panel settings, by creating a base image as a bitmap resource.
Use the Instance and ResName parameters to identify the bitmap resource whose color table should be changed
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|