GetThumbnailImage(ThumbWidth: Integer, ThumbHeight: Integer): IGxImage;
ThumbWidth. Thumbnail width in pixels.
ThumbHeight. Thumbnail height in pixels.
The GetThumbnailImage method creates a thumbnail.
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(20, 20);
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: