ImageEn, unit iexRulers

TIEViewRulerParams.HorzGripsPos

TIEViewRulerParams.HorzGripsPos


Declaration

property HorzGripsPos[g: integer]: double;


Description

Specifies the current position of the grip, g, on the horizontal 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 width
ImageEnView1.RulerParams.HorzGripsCount := 3;
ImageEnView1.RulerParams.GripsPosBase := ierbBitmap; // Units are relative to the bitmap
ImageEnView1.RulerParams.HorzGripsPos[ 0 ] := MulDiv( ImageEnView1.IEBitmap.Width, 1, 4 );
ImageEnView1.RulerParams.HorzGripsPos[ 1 ] := MulDiv( ImageEnView1.IEBitmap.Width, 2, 4 );
ImageEnView1.RulerParams.HorzGripsPos[ 2 ] := MulDiv( ImageEnView1.IEBitmap.Width, 3, 4 );