DibPalEntryCount - returns the number of colors in the palette, depending on the bit depth of the pixel (only for formats that have a palette: pf1bit, pf4bit, pf8bit);
DibPalEntries[i] - access to the colors of the palette by index, allows you to change the palette for DIB images (formats 1, 4 or 8 bits per pixel);
DibPalNearestEntry(C) - finds in the palette the index of the color closest to the color specified by the C parameter;
DibBits - the pointer to the memory that stores the pixels of the images is intended for internal use (can be used by professionals for their own purposes);
DibSize - the size of the memory array for storing pixels;
DibHeader - access to the internal header of the DIB-image, like the two previous properties, is intended mainly for internal use;
The KOL library contains a number of additional functions for working with bitmaps. For example, the following set of functions allows you to load an image from resources, modifying it in such a way that its standard colors are automatically adjusted to the current settings of the desktop system colors:
LoadMappedBitmap(Inst, ResID, Map) - loads an image from a resource (by the numeric resource identifier), replacing colors along the way in accordance with those specified in the Map array. Returns a handle to the loaded bitmap of type hBitmap;
LoadMappedBitmapEx(MasterObj, Inst, ResName, Map)- similar to the previous one, but loads by resource name and understands any pixel formats in resources. In addition, if the MasterObj object is specified, then it becomes the owner of the loaded descriptor, and when this object is destroyed, the loaded descriptor will also be automatically destroyed;
CreateMappedBitmap(Inst, Bmp, Flags, ColorMap, i) - performs color replacement for an existing bitmap;
CreateMappedBitmapEx(Inst, ResName, Flags, ColorMap, i) - the same as the previous function, but the image is first loaded from the resource by name;
LoadBmp(Instance: Integer; Rsrc: PChar; MasterObj: PObj) - loads an image from a resource, adding it to the list of objects for deletion along with the MasterObj object;