DelphiVCL.Bitmap is an encapsulation of a Windows bitmap (HBITMAP), including its palette (HPALETTE).
A Bitmap is a powerful graphics object used to create, manipulate and store images in memory and as files on a disk.
Bitmap contains an internal image of the bitmap graphic and automatically manages the realization of the palette when drawn.
To draw a bitmap on a canvas, call the Draw or StretchDraw methods of a Canvas object, passing a Bitmap as a parameter.
Creating copies of a Bitmap is very fast since the handle is copied rather than the image. If the image is modified and the handle is shared by more than one Bitmap object, the image is copied before the modification is performed (that is, copy on write).
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Bitmap using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Bitmap) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.