Please enable JavaScript to view this site.

KOL/MCK - User Guide

Width - width in pixels (must be greater than zero, otherwise the image is considered empty);

Height - height in pixels (similar to Width, must be greater than zero);

The width and height of the image for the TBitmap object can be changed dynamically, while the previous image is saved (copied from the old one), when the size is increased, the new space is filled with the color that is set for the brush of its canvas, and when the image is reduced, it is cropped to the new size;

BoundsRect - returns a rectangle with coordinates (0, 0, Width, Height). This function is convenient to use for passing parameters to those methods where a rectangle is required: obviously, notation of the form

Bmp.Canvas.FillRect (Bmp.BoundsRect);

 

both shorter and clearer than the equivalent construction

Bmp.Canvas.FillRect (MakeRect (0, 0, Bmp.Width, Bmp.Height));

 

Empty - checks if the image is empty (the image is empty if its width or height is zero);

Clear - makes the image empty, freeing the resources occupied by the image;

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC