ImageEn, unit iesettings

TIEImageEnGlobalSettings.GridPen

TIEImageEnGlobalSettings.GridPen


Declaration

property GridPen: TPen;


Description

Specifies the pen used to draw the grid on a TImageEnView (when DisplayGridKind is not iedgNone).


Examples

// Draw a grid to show pixels when we zoom above 500%
IEGlobalSettings().GridPen.Color := clSilver;
IEGlobalSettings().GridPen.Style := psSolid;
IEGlobalSettings().GridPen.Mode := pmNot;
IEGlobalSettings().MinZoomDisplayGrid := 500;
ImageEnView1.DisplayGridKind := iedgPixelGrid;

// Enable guide lines to help line up images when manually rotating
IEGlobalSettings().GridPen.Color := clSilver;
IEGlobalSettings().GridPen.Style := psDot;
IEGlobalSettings().GridPen.Mode := pmCopy;
IEGlobalSettings().GuidelineCount := 4;
ImageEnView1.DisplayGridKind := iedgGuideLines;


See Also

- GridMajorStep
- MinZoomDisplayGrid