Skip to content

Instantly share code, notes, and snippets.

@nrj
Created June 22, 2010 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrj/448768 to your computer and use it in GitHub Desktop.
Save nrj/448768 to your computer and use it in GitHub Desktop.
//
// 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