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

TdxGPImageCodecBMP.GetSize(TStream,TSize) Method

Returns dimensions (in pixels) of a BMP image stored in the specified stream.

#Declaration

Delphi
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