Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CreateFromBits(Integer,Integer,TRGBColors,Boolean) Constructor

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

#Declaration

Delphi
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