6#include <QtGui/qbackingstore.h>
7#include <QtGui/qpainter.h>
9#include <private/qhighdpiscaling_p.h>
10#include <qpa/qplatformwindow.h>
55 const QPoint delta(dx * devicePixelRatio, dy * devicePixelRatio);
bool hasAlphaChannel() const
Returns true if the image has a format that respects the alpha channel, otherwise returns false.
QSize size() const
Returns the size of the image, i.e.
Format
The following image formats are available in Qt.
@ Format_ARGB32_Premultiplied
void fill(uint pixel)
Fills the entire image with the given pixelValue.
Format format() const
Returns the format of the image.
void setDevicePixelRatio(qreal scaleFactor)
Sets the device pixel ratio for the image.
qreal devicePixelRatio() const
Returns the device pixel ratio for the image.
The QPainter class performs low-level painting on widgets and other paint devices.
void setCompositionMode(CompositionMode mode)
Sets the composition mode to the given mode.
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
\inmodule QtCore\reentrant
void resize(const QSize &size, const QRegion &staticContents) override
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
QRasterBackingStore(QWindow *window)
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
void beginPaint(const QRegion ®ion) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
virtual QImage::Format format() const
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
QRect boundingRect() const noexcept
Returns the bounding rectangle of this region.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset)
static bool hasAlpha(const QImage &image)