Click or drag to resize

GeometryCollectionSnapToNearestPixel Method

return the point within the collection which is closest to the queried point. All values are in the page coordinate space.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public Point SnapToNearestPixel(
	double x,
	double y,
	double dpi,
	uint mode
)

Parameters

x
Type: SystemDouble
the x coordinate to snap
y
Type: SystemDouble
the y coordinate to snap
dpi
Type: SystemDouble
the resolution of the rendered page, in pixels per inch
mode
Type: SystemUInt32
a combination of flags from the SnappingMode enumeration

Return Value

Type: Point
a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged
See Also