GPKGPixelBounds
Objective-C
@interface GPKGPixelBounds : NSObject
Swift
class GPKGPixelBounds : NSObject
Expanded pixel bounds from a point or location. Stored in directional left, up, right, and down pixels
-
Pixels left of the location
Declaration
Objective-C
@property (nonatomic) double left;Swift
var left: Double { get set } -
Pixels up of the location
Declaration
Objective-C
@property (nonatomic) double up;Swift
var up: Double { get set } -
Pixels right of the location
Declaration
Objective-C
@property (nonatomic) double right;Swift
var right: Double { get set } -
Pixels down of the location
Declaration
Objective-C
@property (nonatomic) double down;Swift
var down: Double { get set } -
Create
Declaration
Objective-C
+ (GPKGPixelBounds *)create;Swift
class func create() -> GPKGPixelBounds!Return Value
new pixel bounds
-
Create
Declaration
Objective-C
+ (GPKGPixelBounds *)createWithLength:(double)length;Swift
class func create(withLength length: Double) -> GPKGPixelBounds!Parameters
lengthlength in all directions
Return Value
new pixel bounds
-
Create
Declaration
Objective-C
+ (GPKGPixelBounds *)createWithWidth:(double)width andHeight:(double)height;Swift
class func create(withWidth width: Double, andHeight height: Double) -> GPKGPixelBounds!Parameters
widthlength both left and right
heightheight both up and down
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
+ (GPKGPixelBounds *)createWithLeft:(double)left andUp:(double)up andRight:(double)right andDown:(double)down;Swift
class func create(withLeft left: Double, andUp up: Double, andRight right: Double, andDown down: Double) -> GPKGPixelBounds!Parameters
leftleft length
upup length
rightright length
downdown length
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLength:(double)length;Swift
init!(length: Double)Parameters
lengthlength in all directions
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)initWithWidth:(double)width andHeight:(double)height;Swift
init!(width: Double, andHeight height: Double)Parameters
widthlength both left and right
heightheight both up and down
Return Value
new pixel bounds
-
Initialize
Declaration
Objective-C
- (instancetype)initWithLeft:(double)left andUp:(double)up andRight:(double)right andDown:(double)down;Swift
init!(left: Double, andUp up: Double, andRight right: Double, andDown down: Double)Parameters
leftleft length
upup length
rightright length
downdown length
Return Value
new pixel bounds
-
Expand the left pixels if greater than the current value
Declaration
Objective-C
- (void)expandLeft:(double)left;Swift
func expandLeft(_ left: Double)Parameters
leftleft pixels
-
Expand the up pixels if greater than the current value
Declaration
Objective-C
- (void)expandUp:(double)up;Swift
func expandUp(_ up: Double)Parameters
upup pixels
-
Expand the right pixels if greater than the current value
Declaration
Objective-C
- (void)expandRight:(double)right;Swift
func expandRight(_ right: Double)Parameters
rightright pixels
-
Expand the down pixels if greater than the current value
Declaration
Objective-C
- (void)expandDown:(double)down;Swift
func expandDown(_ down: Double)Parameters
downdown pixels
-
Expand the width pixels if greater than the current values
Declaration
Objective-C
- (void)expandWidth:(double)width;Swift
func expandWidth(_ width: Double)Parameters
widthwidth pixels
-
Expand the height pixels if greater than the current values
Declaration
Objective-C
- (void)expandHeight:(double)height;Swift
func expandHeight(_ height: Double)Parameters
heightheight pixels
-
Expand the length pixels in all directions
Declaration
Objective-C
- (void)expandLength:(double)length;Swift
func expandLength(_ length: Double)Parameters
lengthlength pixels
-
Get the total pixel width
Declaration
Objective-C
- (double)width;Swift
func width() -> DoubleReturn Value
pixel width
-
Get the total pixel height
Declaration
Objective-C
- (double)height;Swift
func height() -> DoubleReturn Value
pixel height
-
Get the pixel area
Declaration
Objective-C
- (double)area;Swift
func area() -> DoubleReturn Value
pixel area
View on GitHub
GPKGPixelBounds Class Reference