TCustomBitmap.SetHandles procedure
Sets handles for the bitmap and the mask to the specified values.
Declaration
procedure SetHandles(ABitmap: HBITMAP; AMask: HBITMAP); overrideDescription
SetHandles is a procedure used to set the handles for the bitmap
and the mask to the values specified in
ABitmap and
AMask. SetHandles ensures that the
Canvas context,
shared image, and save stream are unshared and freed. SetHandles calls
UpdateHandles to store the specified handles for the shared image
and its mask.
SetHandles is called from methods that load image data using
TLazIntfImage from the LCL interface. It is also called when
values are assigned to the BitmapHandle or MaskHandle
properties.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
