TdxGPImageCodecBMP.GetSize(TStream,TSize) Method
Returns dimensions (in pixels) of a BMP image stored in the specified stream.
Declaration
class function GetSize(AStream: TStream; out ASize: TSize): Boolean; override;
Parameters
Name | Type |
---|---|
AStream | TStream |
ASize | TSize |
Returns
Type |
---|
Boolean |
Remarks
UI layout calculation routines in DevExpress controls call this function internally prior to an image load operation to determine the image’s bounding rectangle and thus speed performance up. You can call this function and pass a source stream as the AStream parameter to obtain image dimensions from it as the ASize out parameter. The GetSize function retrieves an image’s size and returns True if the specified stream contains a BMP image that starts from its current Position; otherwise, False.
See Also