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
qwindowsdirect2dbitmap.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 QWINDOWSDIRECT2DBITMAP_H
5#define QWINDOWSDIRECT2DBITMAP_H
6
7#include <QtCore/qnamespace.h>
8#include <QtCore/qrect.h>
9#include <QtCore/qscopedpointer.h>
10
11struct ID2D1DeviceContext;
12struct ID2D1Bitmap1;
13
15
18
19class QImage;
20class QSize;
21class QColor;
22
24{
25 Q_DECLARE_PRIVATE(QWindowsDirect2DBitmap)
26 Q_DISABLE_COPY_MOVE(QWindowsDirect2DBitmap)
27public:
29 QWindowsDirect2DBitmap(ID2D1Bitmap1 *bitmap, ID2D1DeviceContext *dc);
31
32 bool resize(int width, int height);
33 bool fromImage(const QImage &image, Qt::ImageConversionFlags flags);
34
35 ID2D1Bitmap1* bitmap() const;
37
38 void fill(const QColor &color);
39 QImage toImage(const QRect &rect = QRect());
40
41 QSize size() const;
42
43private:
44 QScopedPointer<QWindowsDirect2DBitmapPrivate> d_ptr;
45};
46
48
49#endif // QWINDOWSDIRECT2DBITMAP_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:25
QWindowsDirect2DDeviceContext * deviceContext() const
void fill(const QColor &color)
ID2D1Bitmap1 * bitmap() const
bool resize(int width, int height)
bool fromImage(const QImage &image, Qt::ImageConversionFlags flags)
QImage toImage(const QRect &rect=QRect())
rect
[4]
Combined button and popup list for selecting options.
Definition image.cpp:4
GLint GLsizei GLsizei height
GLint GLsizei width
GLuint color
[2]
GLbitfield flags
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap