Remaps the standard gray colors in a bitmap with the system grays.
function CreateGrayMappedBmp(Handle: HBITMAP): HBITMAP;
HBITMAP CreateGrayMappedBmp(HBITMAP Handle);
Graphics
Call CreateGrayMappedBmp to create a bitmap that uses the system gray colors (clBtnHightlight, clBtnFace, clBtnShadow and clBtnText) from a 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, given a base image.
CreateGrayMappedBmp creates a new bitmap. It does not alter the original bitmap, which has the handle specified by the Handle parameter.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|