Skip to main content

CreateFromBits(Integer,Integer,TRGBColors,Boolean) Constructor

Creates a new Smart Image container and populates it with the specified array of pixel data.

Declaration

constructor CreateFromBits(AWidth: Integer; AHeight: Integer; const ABits: TRGBColors; AHasAlphaChannel: Boolean); overload; virtual;

Parameters

Name Type Description
AWidth Integer

The loaded image’s width, in pixels.

AHeight Integer

The loaded image’s height, in pixels.

ABits TRGBColors

The source array of TRGBQuad values.

AHasAlphaChannel Boolean

Specifies if the source array of TRGBQuad values stores alpha values. If False, the constructor ignores reserved byte values. If True, the constructor loads reserved bytes as alpha values. The corresponding red, green, and blue color values remain unchanged.

Remarks

You can call the LoadFromBits procedure to load an array of pixel color data to an existing Smart Image container.

See Also