CreateSize(Integer,Integer,TdxAlphaColor) Constructor
Creates a Smart Image object with the stored image filled with the specified color.
Declaration
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