ImageEn, unit imageenview

TImageEnView.OffsetX

TImageEnView.OffsetX

Declaration

property OffsetX: Integer;

Description

Returns the horizontal position where the image has been drawn. If ImageHorizAlignment is iehLeft, OffsetX will be zero, whereas for iehCenter it will be (Control Width - Image Width) div 2.
Negative values mean part of the image is off screen.


Note: This value only indicates the initial draw position for an image, it is not related to scrolling (unlike ViewX)

Read-only

Example

// Get Offset values
offX := ImageEnView1.OffsetX;
offY := ImageEnView1.OffsetY;

See Also

OffsetY
ViewX
ViewY
ExtentX
ExtentY
XScr2Bmp
VisibleBitmapRect