IGxImage.GetThumbnailImage

Syntax

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

Parameters

ThumbWidth. Thumbnail width.

ThumbHeight. Thumbnail height.

Description

The GetThumbnailImage method creates a thumbnail.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Image, Image1: IGxImage;

Begin

Image:=ImageBox1.Image;

Image1:=Image.GetThumbnailImage(20,20);

ImageBox2.Image:=Image1;

End Sub Button1OnClick;

After executing the example on clicking the button the component named ImageBox2 contains the thumbnail of the image stored in the component named ImageBox1. The size of the created thumbnail is 20*20.

See also:

IGxImage