ImageEn, unit iexRulers

TIEViewRulerParams.VertGripsPos

TIEViewRulerParams.VertGripsPos


Declaration

property VertGripsPos[g: integer]: double;


Description

Specifies the current position of the grip, g, on the vertical ruler.
Use GripsPosBase to determine whether to pass bitmap, ruler or screen values.


Example

// Add three grips at 25%, 50% and 75% of the image height
ImageEnView1.RulerParams.VertGripsCount := 3;
ImageEnView1.RulerParams.GripsPosBase := ierbBitmap; // Units are relative to the bitmap
ImageEnView1.RulerParams.VertGripsPos[ 0 ] := MulDiv( ImageEnView1.IEBitmap.Height, 1, 4 );
ImageEnView1.RulerParams.VertGripsPos[ 1 ] := MulDiv( ImageEnView1.IEBitmap.Height, 2, 4 );
ImageEnView1.RulerParams.VertGripsPos[ 2 ] := MulDiv( ImageEnView1.IEBitmap.Height, 3, 4 );