95 pe = static_cast<QMacPrintEngine*>(pe)->paintEngine();
99 context = static_cast<QCoreGraphicsPaintEngine*>(pe)->handle();
107 uint flags = kCGImageAlphaPremultipliedFirst;
108 #ifdef kCGBitmapByteOrder32Host //only needed because CGImage.h added symbols in the minor version 109 flags |= kCGBitmapByteOrder32Host;
117 CGContextScaleCTM(
context, 1, -1);
134 CGContextTranslateCTM(
context, native.
dx(), native.
dy());
QPaintDevice * device() const
Returns the paint device on which this painter is currently painting, or 0 if the painter is not acti...
QPaintDevice * paintDevice() const
Returns the device that this engine is painting on, if painting is active; otherwise returns 0...
void syncState()
Updates all dirty states in this engine.
CGColorSpaceRef qt_mac_colorSpaceForDeviceType(const QPaintDevice *paintDevice)
int bytesPerLine() const
Returns the number of bytes per image scanline.
virtual int devType() const
QRegion clipRegion() const
Returns the currently set clip region.
bool hasClipping() const
Returns true if clipping has been set; otherwise returns false.
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
void qt_mac_clip_cg(CGContextRef hd, const QRegion &rgn, CGAffineTransform *orig_xform)
virtual Type type() const =0
Reimplement this function to return the paint engine Type.
The QImage class provides a hardware-independent image representation that allows direct access to th...
const QTransform & deviceTransform() const
Returns the matrix that transforms from logical coordinates to device coordinates of the platform dep...
QPaintEngine * paintEngine() const
Returns the paint engine that the painter is currently operating on if the painter is active; otherwi...
QTransform combinedTransform() const
Returns the transformation matrix combining the current window/viewport and world transformation...
The QRegion class specifies a clip region for a painter.
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
uchar * bits()
Returns a pointer to the first pixel data.
int width() const
Returns the width of the image.
struct CGColorSpace * CGColorSpaceRef
int height() const
Returns the height of the image.
void translate(int dx, int dy)
Translates (moves) the region dx along the X axis and dy along the Y axis.
QRegion systemClip() const
Returns the system clip.