13 #ifndef ROOT_QuartzPixmap 14 #define ROOT_QuartzPixmap 18 #include <Cocoa/Cocoa.h> 40 std::vector<unsigned char>
fData;
46 - (id) initWithW : (
unsigned) width H : (
unsigned) height scaleFactor : (CGFloat) scaleFactor;
47 - (BOOL) resizeW : (
unsigned) width H : (
unsigned) height scaleFactor : (CGFloat) scaleFactor;
54 @property (nonatomic, assign)
unsigned fID;
59 @property (nonatomic, readonly) CGContextRef
fContext;
65 clipOrigin : (
ROOT::MacOSX::
X11::Point) origin toPoint : (
ROOT::MacOSX::
X11::Point) dstPoint;
67 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
70 - (
unsigned char *)
fData;
73 - (
void) putPixel : (const
unsigned char *) data X : (
unsigned) x Y : (
unsigned) y;
75 - (
void) addPixel : (const
unsigned char *) rgb;
99 - (id) initWithW : (
unsigned) width H : (
unsigned) height data : (
unsigned char *) data;
100 - (id) initMaskWithW : (
unsigned) width H : (
unsigned) height bitmapMask : (
unsigned char *) mask;
101 - (id) initMaskWithW : (
unsigned) width H : (
unsigned) height;
104 - (id) initFromImageFlipped : (
QuartzImage *) image;
106 @property (nonatomic, readonly) BOOL fIsStippleMask;
107 - (CGImageRef) fImage;
110 @property (nonatomic, assign)
unsigned fID;
118 - (
unsigned char *) readColorBits : (
ROOT::MacOSX::
X11::Rectangle) area;
129 bool AdjustCropArea(
const Rectangle &srcRect, Rectangle &cropArea);
136 ULong_t backgroundPixel,
unsigned depth,
unsigned char *imageData);
std::vector< unsigned char > fData
ROOT::MacOSX::Util::CFScopeGuard< CGImageRef > fImage
Namespace for new ROOT classes and functions.
void FillPixmapBuffer(const unsigned char *bitmap, unsigned width, unsigned height, ULong_t foregroundPixel, ULong_t backgroundPixel, unsigned depth, unsigned char *imageData)
CGImageRef CreateSubImage(QuartzImage *image, const Rectangle &area)
CGImageRef createImageFromPixmap()
ROOT::MacOSX::Util::CFScopeGuard< CGContextRef > fContext
bool AdjustCropArea(QuartzPixmap *srcImage, Rectangle &cropArea)
std::vector< unsigned char > fImageData
typedef void((*Func_t)())