4 #import "ObjectiveChipmunk/ObjectiveChipmunk.h"
5 #import "ChipmunkAutoGeometry.h"
7 #import <TargetConditionals.h>
9 #if TARGET_OS_IPHONE == 1
10 #import <CoreGraphics/CoreGraphics.h>
21 NSUInteger _width, _height, _stride;
22 NSUInteger _bytesPerPixel, _component;
25 const uint8_t *_pixels;
34 @property(nonatomic, readonly) NSUInteger width;
37 @property(nonatomic, readonly) NSUInteger height;
40 @property(nonatomic, readonly) NSUInteger bytesPerPixel;
43 @property(nonatomic, assign) NSUInteger component;
46 @property(nonatomic, readonly) NSData *pixelData;
50 @property(nonatomic, assign)
cpBB outputRect;
60 -(id)initWithWidth:(NSUInteger)width height:(NSUInteger)height stride:(NSUInteger)stride bytesPerPixel:(NSUInteger)bytesPerPixel component:(NSUInteger)component flip:(
bool)flip pixelData:(NSData *)pixelData;
63 -(void)setBorderRepeat;
66 -(void)setBorderValue:(
cpFloat)borderValue;
79 CGContextRef _context;
83 @property(nonatomic, readonly) CGContextRef context;
86 @property(nonatomic, readonly) NSMutableData *pixelData;
90 -(id)initWithWidth:(
unsigned long)width height:(
unsigned long)height colorSpace:(CGColorSpaceRef)colorSpace bitmapInfo:(CGBitmapInfo)bitmapInfo component:(NSUInteger)component;
100 +(CGImageRef)loadImage:(NSURL *)url;
104 -(id)initWithImage:(CGImageRef)image isMask:(
bool)isMask contextWidth:(NSUInteger)width contextHeight:(NSUInteger)height;
108 -(id)initWithImageFile:(NSURL *)url isMask:(
bool)isMask;