ImageEn, unit imageenview

TImageEnView.SelY1

TImageEnView.SelY1


Declaration

property SelY1: integer; (Read-only)


Description

Returns the top-left Y (row) coordinate of the selected area.
The value is a coordinate of the Bitmap itself, i.e. it is independent of scrolling (ViewX and ViewY) and Zoom (e.g. you will get the same result whether the zoom is 50% or 100%).

Note:
- The selected area can be specified using Select
- You can convert the returned value to a screen value using YBmp2Scr


Example

// Enlarge the selection by ten pixels on all sides
With ImageEnView1 do
begin
  SelectionBase := iesbBitmap;
  Select( SelX1 - 10, SelY1 - 10, SelX2 - 10, SelY2 - 10 );
End;


See Also

- SelX1
- SelX2
- SelY2
- Select
- XBmp2Scr
- YBmp2Scr
- XScr2Bmp
- YScr2Bmp