Created
June 22, 2010 17:14
-
-
Save nrj/448768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BitmapImage.h | |
// GhostGuy | |
// | |
// Copyright 2010 Nick Jensen <http://goto11.net> | |
// | |
#import <Foundation/Foundation.h> | |
typedef unsigned char byte; | |
typedef struct RGBAPixel { | |
byte red; | |
byte green; | |
byte blue; | |
byte alpha; | |
} RGBAPixel; | |
@interface BitmapImage : UIImage { | |
CFDataRef bitmapData; | |
UInt8 *pixelByteData; | |
RGBAPixel *pixelData; | |
} | |
@property(readwrite, assign) CFDataRef bitmapData; | |
@property(readwrite, assign) UInt8 *pixelByteData; | |
@property(readwrite, assign) RGBAPixel *pixelData; | |
- (RGBAPixel *)bitmap; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment