Skip to main content

TdxGPImageCodecGIF.GetSize(TStream,TSize) Method

Returns dimensions (in pixels) of a GIF 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 class function and pass a source stream as the AStream parameter to obtain image dimensions from it as the ASize out parameter. This function retrieves an image’s size and returns True if the specified stream contains a GIF image that starts from its current position; otherwise, False.

See Also