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

CreateSize(Integer,Integer,TdxAlphaColor) Constructor

Creates a Smart Image object with the stored image filled with the specified color.

#Declaration

Delphi
constructor CreateSize(AWidth: Integer; AHeight: Integer; AColor: TdxAlphaColor = 0); overload; virtual;

#Parameters

Name Type Description
AWidth Integer

The image width, in pixels.

AHeight Integer

The image height, in pixels.

AColor TdxAlphaColor

The fill color.

#Remarks

Call this constructor to create a Smart Image object that stores the image filled with the color passed as the AColor parameter. The three overloaded variants provide three different ways to specify the stored image dimensions (in pixels):

  • The first variant obtains the stored image width and height from a rectangle passed as the ARect parameter;

  • The second variant accepts the stored image dimensions as ASize parameter;

  • The third variant accepts the stored image width and height as the AWidth and AHeight parameters, respectively.

See Also