IGxImage.GetThumbnailImage

Syntax

GetThumbnailImage(ThumbWidth: Integer, ThumbHeight: Integer): IGxImage;

Parameters

ThumbWidth. Thumbnail width in pixels.

ThumbHeight. Thumbnail height in pixels.

Description

The GetThumbnailImage method creates a thumbnail.

Example

Executing the example requires a form with the Button1 button and two ImageBox components named ImageBox1 and ImageBox2. An image is loaded to ImageBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Image, Image1: IGxImage;
Begin
    Image := ImageBox1.Image;
    Image1 := Image.GetThumbnailImage(2020);
    ImageBox2.Image := Image1;
End Sub Button1OnClick;

On clicking the button the thumbnail of the image stored in the ImageBox1 component named is loaded to the ImageBox2 component.

See also:

IGxImage