Class GeometryCollection
A Preprocessed PDF geometry collection
Inheritance
Implements
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFNetAndroid.dll
Syntax
public class GeometryCollection : IDisposable
Constructors
GeometryCollection(IntPtr)
Declaration
public GeometryCollection(IntPtr impl_ptr)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | impl_ptr |
Methods
CreateInternal(IntPtr)
Declaration
public static GeometryCollection CreateInternal(IntPtr imp)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | imp |
Returns
Type | Description |
---|---|
GeometryCollection |
Destroy()
Declaration
public void Destroy()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
SnapToNearest(Double, Double, Int32)
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Declaration
public Point SnapToNearest(double x, double y, int mode)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | the x coordinate to snap, in page coordinates |
System.Double | y | the y coordinate to snap, in page coordinates |
System.Int32 | mode | a combination of flags from the SnappingMode enumeration |
Returns
Type | Description |
---|---|
Point | a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged |
SnapToNearestPixel(Double, Double, Double, Int32)
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Declaration
public Point SnapToNearestPixel(double x, double y, double dpi, int mode)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | the x coordinate to snap |
System.Double | y | the y coordinate to snap |
System.Double | dpi | the resolution of the rendered page, in pixels per inch |
System.Int32 | mode | a combination of flags from the SnappingMode enumeration |
Returns
Type | Description |
---|---|
Point | a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged |