[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Ensures that handles for the image and mask are valid for the raw image data.
Source position: graphics.pp line 1268
protected procedure TRasterImage.BitmapHandleNeeded; virtual; |
BitmapHandleNeeded is a procedure used to ensures that handles for both the image and its mask are valid for the RawImage data. No actions are performed in the method when BitmapHandleAllocated returns True, or when RawImage data does not exist.
The MaskHandle is not created when:
BitmapHandleNeeded calls CreateCompatibleBitmaps to get the handles for the bitmap and mask using a pointer to the raw image data, and creates a default handle if CreateCompatibleBitmaps is unsuccessful. UpdateHandles is called to assign the new handles to BitmapHandle and MaskHandle (when used).
BitmapHandleNeeded is called from the Draw method prior to performing operations using the Canvas for the class instance. It is also used when the Canvas creates a new DC (Device Context).
Version 4.0 | Generated 2025-05-03 | Home |