GPKGCoverageDataPngImage
Objective-C
@interface GPKGCoverageDataPngImage : NSObject <GPKGCoverageDataImage>
Swift
class GPKGCoverageDataPngImage : NSObject, GPKGCoverageDataImage
Coverage Data PNG image
-
Initialize
Declaration
Objective-C
- (instancetype)initWithTileRow:(GPKGTileRow *)tileRow;
Swift
init!(tileRow: GPKGTileRow!)
Parameters
tileRow
tile row
Return Value
new instance
-
Get the image
Declaration
Objective-C
- (id)image;
Swift
func image() -> Any!
Return Value
image
-
Get the image data
Declaration
Objective-C
- (NSData *)imageData;
Swift
func imageData() -> Data!
Return Value
image data
-
Get the pixel at the coordinate
Declaration
Objective-C
- (unsigned short)pixelAtX:(int)x andY:(int)y;
Swift
func pixelAt(x: Int32, andY y: Int32) -> UInt16
Parameters
x
x coordinate
y
y coordinate
Return Value
pixel value