Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomBitmap32🞂AssignMethodPublic

TCustomBitmap32.Assign

Copies pixel data, dimensions, and drawing properties from a source object or persistent bitmap.

Declaration ​

pascal
procedure Assign(Source: TPersistent); override;

Parameters ​

ParameterTypeDescription
SourceTPersistentSource object (typically another TCustomBitmap32 or TGraphic) to copy from.

Description ​

Assign copies pixel data, dimensions, drawing parameters, and active settings from Source into this bitmap.

If Source is another TCustomBitmap32, Assign resizes this bitmap, copies pixel buffer memory, and copies drawing properties (DrawMode, CombineMode, MasterAlpha, OuterColor, WrapMode, ClipRect).

Example ​

pascal
DstBitmap.Assign(SrcBitmap);