PTGeometryCollection
@interface PTGeometryCollection : NSObject
The class GeometryCollection. A Preprocessed PDF geometry collection
-
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Declaration
Objective-C
- (PTPDFPoint *)SnapToNearest:(double)x y:(double)y mode:(unsigned int)mode;
Swift
func snap(toNearest x: Double, y: Double, mode: UInt32) -> PTPDFPoint!
Parameters
x
– the x coordinate to snap, in page coordinates.
y
– the y coordinate to snap, in page coordinates.
mode
– a combination of flags from the SnappingMode enumeration.
Return Value
a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged.
-
return the point within the collection which is closest to the queried point. All values are in the page coordinate space.
Declaration
Objective-C
- (PTPDFPoint *)SnapToNearestPixel:(double)x y:(double)y dpi:(double)dpi mode:(unsigned int)mode;
Swift
func snap(toNearestPixel x: Double, y: Double, dpi: Double, mode: UInt32) -> PTPDFPoint!
Parameters
x
– the x coordinate to snap.
y
– the y coordinate to snap.
dpi
– the resolution of the rendered page, in pixels per inch.
mode
– a combination of flags from the SnappingMode enumeration.
Return Value
a point within the collection, closest to the queried point. If the collection is empty, the queried point will be returned unchanged.
-
Undocumented
Declaration
Objective-C
+ (PTGeometryCollection*)CreateInternal: (unsigned long long)impl;
Swift
class func createInternal(_ impl: UInt64) -> PTGeometryCollection!
-
Undocumented
Declaration
Objective-C
- (unsigned long long)GetHandleInternal;
Swift
func getHandleInternal() -> UInt64
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithOther: (PTGeometryCollection*)other;
Swift
init!(other: PTGeometryCollection!)