Click or drag to resize

IMcGraphOverlay2SnapToGrid Property

Size, in pixels, of a grid for editing objects.

Namespace:  MediaCy.IQL.Display.Overlays
Assembly:  MediaCy.IQL.Display.Overlays (in MediaCy.IQL.Display.Overlays.dll) Version: 10.0.6912.0
Syntax
VB
Property SnapToGrid As Integer
	Get
	Set

Property Value

Type: Int32
Remarks
When a view is zoomed in (so each image pixel occupies more than one screen pixel), it is possible for the user to place object handles on any screen pixel, thus allowing placement of objects between image pixel centers. You may desire to prevent this sub-pixel placement, or you my wish to force objects to be placed on some larger grid (say every 4 pixels). The SnapToGrid property allows such a restriction. SnapToGrid may be any value from 0 to 100. The default value of zero imposes no restriction on where the user may place an object or handle. A value of one causes all object handles to be constrained to a pixel center, while higher values cause the constraint to be applied to a grid of pixel values.
See Also