[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCustomIcon.GetRawImagePtr

Gets a pointer to the raw image data for the icon.

Declaration

Source position: graphics.pp line 1633

protected function TCustomIcon.GetRawImagePtr: PRawImage; override;

Function result

Pointer to the raw image data, or Nil when Current is not assigned.

Description

GetRawImagePtr is an overridden method used to get a pointer to the raw image data for the icon image. The return value is a PRawImage type which points to the data in a TIconImage instance in the shared image list for the icon.

GetRawImagePtr uses the value in Current to determine which image is retrieved from the internal image list. When Current is -1, the return value is Nil. Otherwise, the shared icon image at the position in Current is accessed to get the return value for the method.

GetRawImagePtr is called from AssignImage a raw image is assigned to the icon. It is also used to get mask image data in the MaskHandleNeeded method.

See also

TCustomIcon.Current

  

Ordinal position for the current image displayed for the icon.

TCustomIcon.AssignImage

  

Copies image data from the source image to the current icon image.

TCustomIcon.MaskHandleNeeded

  

Ensures that a handle for the mask in the icon is valid.

TIconImage

  

TIconImage - a primitive Icon class with handles for the Bitmap, Mask and Palette.

TRasterImage.GetRawImagePtr

  

Gets a pointer with the raw image data.


Version 3.2 Generated 2024-02-25 Home