ImageEn, unit imageenview |
|
TImageEnView.DisplayGridLyr
Declaration
property DisplayGridLyr: Integer;
Description
Specifies where to draw the grid if
DisplayGridKind is
iedgPixelGrid.
-1 : current layer (default behavior)
>= 0 : specific layer
Note: Grid is only shown for
image layers// Draw a grid on current layer when zoomed above 100%
IEGlobalSettings().GridPen.Color := clSilver;
IEGlobalSettings().GridPen.Style := psSolid;
IEGlobalSettings().GridPen.Mode := pmNot;
IEGlobalSettings().MinZoomDisplayGrid := 100;
ImageEnView1.DisplayGridLyr := ImageEnView1.CurrentLayer.LayerIndex;
ImageEnView1.DisplayGridKind := iedgPixelGrid;
Compatibility Information
Prior to v6.2.2, the display grid was enabled using ImageEnView1.DisplayGrid := True;
That code should be changed to: ImageEnView1.DisplayGridKind := iedgPixelGrid;
See Also
◼DisplayGridKind◼MinZoomDisplayGrid◼GridPen◼GridMajorStep