Sign in Join
FPDoc Onlineexperiment

TIconImage.UpdateFromImage procedure

Member of TIconImageprotectedIn unit Graphics

Updates the icon image from the specified raw image data.

Declaration

pascal
procedure UpdateFromImage(const AImage: TRawImage)

Arguments

AImage

Raw image data stored in the method.

Description

UpdateFromImage is a procedure used to update the icon image from the specified raw image data.

AImage is a TRawImage instance with the image content stored in the RawImage property in the class instance. The image descriptor in AImage is examined to get the values stored in the Height and Width properties. The color depth in AImage is converted and stored in the PixelFormat property.

UpdateFromImage is called from the Create constructor when a TRawImage or a TIconInfo argument is provided.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.