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

TdxSmartImageCodec.Load(TRGBColors,TAlphaFormat,Integer,Integer,TdxSmartImageCustomHandle) Method

Loads an image from an array of pixel data.

#Declaration

Delphi
class function Load(const ABits: TRGBColors; AAlphaFormat: TAlphaFormat; AWidth: Integer; AHeight: Integer; out AHandle: TdxSmartImageCustomHandle): Boolean; overload; virtual;

#Parameters

Name Type Description
ABits TRGBColors

The source pixel data array.

AAlphaFormat TAlphaFormat

Specifies how the function interprets reserved color bytes in the source array passed as the ABits parameter.

The TBitmap.AlphaFormat property works similar to the AAlphaFormat parameter. Refer to the table in the Remarks section for detailed information on available options.

AWidth Integer

The width of the loaded image, in pixels.

AHeight Integer

The height of the loaded image, in pixels.

AHandle TdxSmartImageCustomHandle

The handle to the resulting image.

#Returns

Type Description
Boolean

True if the image load operation is successful; otherwise, False.

See Also