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). Layout is determined by GuidelineCount
iedgRulerGuides Guide lines are shown horizontally and vertically over the image in line with label ticks of the ruler
iedgAuto Automatically uses iedgPixelGrid, iedgGuideLines or iedgRulerGuides depending on the current view

if DisplayGridKind is iedgAuto then the displayed grid is selected as follows:
- If zoom is greater than MinZoomDisplayGrid then iedgPixelGrid is used.
- Otherwise, if rulers are visible then iedgRulerGuides is used.
- Otherwise, iedgGuideLines is used.


Examples

// Automatically show guidelines based on current view
ImageEnView1.DisplayGridKind := iedgAuto;

// 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
- HighlightedPixel