ImageEn, unit imageenview |
|
TImageEnView.ViewX
Declaration
property ViewX: 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.ViewX := 20; // View from pixel column 20 of bitmap (i.e. first 20 pixels on the left of the image will no longer be visible)
ImageEnView1.Zoom := 200; // zoom image to 200%
ImageEnView1.ViewX := 20; // view from pixel column 40 of bitmap (i.e. first 40 pixels on the left 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
◼ViewY◼ExtentX◼XScr2Bmp◼VisibleBitmapRect◼OuterMargin