ImageEn, unit imageenview

TImageEnView.ZoomSelection

TImageEnView.ZoomSelection


Declaration

procedure ZoomSelection(AspectRatio: Boolean);


Description

Zooms to a rectangular area specified with the Select method.
If AspectRatio is true then the zoom respects the aspect ratio of the image, otherwise the image area is stretched to match the size of the component.


Example

ImageEnView1.Select(10, 10, 100, 100);
ImageEnView1.ZoomSelection; // fill client area (if possible) with rectangle 10,10,100,100