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
)
Public Function SnapToNearestPixel (
x As Double,
y As Double,
dpi As Double,
mode As UInteger
) As Point
public:
virtual Point^ SnapToNearestPixel(
[InAttribute] double x,
[InAttribute] double y,
[InAttribute] double dpi,
[InAttribute] unsigned int mode
) sealed
function SnapToNearestPixel(x, y, dpi, 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:
Pointa point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged
See Also