function XBmp2Scr(x: Integer; CurrentLayer: Boolean = False): Integer;
Description
The XBmp2Scr and YBmp2Scr methods convert a bitmap coordinate to the window coordinate (considering the Zoom and View status). x and y are bitmap coordinates.
These methods are useful to select a bitmap region independently from the Zoom, ViewX and ViewY properties.
x is a bitmap coordinate.
If CurrentLayer is true, then x is assumed to be a coordinate of the current layer. If false, y is a coordinate of the background layer (layer 0).
Note: ◼To convert a coordinate of a non-current layer, you can use TImageEnView.Layers[].ConvXBmp2Scr ◼The resulting screen value is relative to the control, i.e. assumes the TImageEnView is positioned at 0,0 on the active screen