ImageEn, unit imageenview |
|
TImageEnView.ViewY
Declaration
property ViewY: integer;
Description
ViewX and ViewY specify the top-left of the image that is visible in the TImageEnView component window. Use ViewX/Y to programmatically scroll images bigger than the TImageEnView.
Values are specified in terms of the bitmap.
ImageEnView1.ViewY := 20; // View from pixel row 20 of bitmap (i.e. first 20 pixels on the top of the image will no longer be visible)
ImageEnView1.Zoom := 200; // zoom image to 200%
ImageEnView1.ViewY := 20; // view from pixel row 40 of bitmap (i.e. first 40 pixels on the top of the image will no longer be visible)
// Scroll the view to show layer #1
ImageEnView1.ViewX := ImageEnView1.Layers[1].PosX;
ImageEnView1.ViewY := ImageEnView1.Layers[1].PosY;
See Also
◼ViewX
◼ExtentY
◼YScr2Bmp
◼VisibleBitmapRect
◼OuterMargin