Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpixmap_raster_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPIXMAP_RASTER_P_H
5#define QPIXMAP_RASTER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <qpa/qplatformpixmap.h>
20
21
23
24class Q_GUI_EXPORT QRasterPlatformPixmap : public QPlatformPixmap
25{
26public:
29
30 QPlatformPixmap *createCompatiblePlatformPixmap() const override;
31
32 void resize(int width, int height) override;
33 bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags) override;
34 void fromImage(const QImage &image, Qt::ImageConversionFlags flags) override;
35 void fromImageInPlace(QImage &image, Qt::ImageConversionFlags flags) override;
36 void fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags) override;
37
38 void copy(const QPlatformPixmap *data, const QRect &rect) override;
39 bool scroll(int dx, int dy, const QRect &rect) override;
40 void fill(const QColor &color) override;
41 bool hasAlphaChannel() const override;
42 QImage toImage() const override;
43 QImage toImage(const QRect &rect) const override;
44 QPaintEngine* paintEngine() const override;
45 QImage* buffer() override;
46 qreal devicePixelRatio() const override;
47 void setDevicePixelRatio(qreal scaleFactor) override;
48
49
50protected:
51 int metric(QPaintDevice::PaintDeviceMetric metric) const override;
52 void createPixmapForImage(QImage sourceImage, Qt::ImageConversionFlags flags);
53 void setImage(const QImage &image);
55 static QImage::Format systemNativeFormat();
56
57private:
58 friend class QPixmap;
59 friend class QBitmap;
60 friend class QPixmapCacheEntry;
61 friend class QRasterPaintEngine;
62};
63
65
66#endif // QPIXMAP_RASTER_P_H
67
68
\inmodule QtGui
Definition qbitmap.h:16
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
The QImageReader class provides a format independent interface for reading images from files or other...
\inmodule QtGui
Definition qimage.h:37
Format
The following image formats are available in Qt.
Definition qimage.h:41
\inmodule QtGui
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QPlatformPixmap class provides an abstraction for native pixmaps.
The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded ...
void setImage(const QImage &image)
\inmodule QtCore\reentrant
Definition qrect.h:30
a resize(100000)
rect
[4]
Combined button and popup list for selecting options.
Definition image.cpp:4
static jboolean copy(JNIEnv *, jobject)
GLint GLsizei GLsizei height
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint buffer
GLint GLsizei width
GLuint color
[2]
GLenum type
GLbitfield flags
GLint GLsizei GLsizei GLenum format
GLenum GLsizei len
unsigned char uchar
Definition qtypes.h:32
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187
ba fill(true)