ImageEn, unit imageenview

TImageEnView.DisplayGridKind

TImageEnView.DisplayGridKind


Declaration


property DisplayGridKind: TIEGridKind;


Description


Enables the display of helper lines over the image.
Item Description
iedgNone No guide lines are shown
iedgPixelGrid A grid is shown marking each pixel when the image is zoomed in (e.g. for pixel editing in an image editor)
iedgGuideLines Guide lines are shown horizontally and vertically over the image (e.g. to help align objects when rotating)



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


- MinZoomDisplayGrid
- GridPen
- GridMajorStep
- GuidelineCount
- DisplayGridLyr