Sign in Join
FPDoc Onlineexperiment

TRasterImage.LoadFromRawImage procedure

Member of TRasterImagepublicIn unit Graphics

Loads image data from the specified TRawImage instance.

Declaration

pascal
procedure LoadFromRawImage(const AIMage: TRawImage; ADataOwner: Boolean)

Arguments

AIMage

Raw image instance loaded in the method.

ADataOwnerTrue if the image owns the raw image data.

Description

LoadFromRawImage is a procedure used to load raw image data in AImage into the class instance.

LoadFromRawImage calls BeginUpdate to increment the update process count, and calls EndUpdate when the image data has been loaded in the method.

LoadFromRawImage calls Clear to free the internal save stream for the class instance, and calls SetSize to reflect an empty image. No additional actions are performed in the method If AImage contains an empty image.

The Image Descriptor in AImage is assigned to the internal TRawImage instance to capture the image metadata.

ADataOwner indicates if the internal TRawImage instance is the owner for the image data in AImage. When set to True, values in AImage data are assigned directly to the pointer to the internal raw image data. Values include the size and content for the image data, the image mask, and the palette. When set to False, storage for values is allocated using GetMem and copied from AImage using the Move routine.

See also

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