Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsDirect2DBitmapPrivate Class Reference
+ Collaboration diagram for QWindowsDirect2DBitmapPrivate:

Public Member Functions

 QWindowsDirect2DBitmapPrivate (ID2D1DeviceContext *dc=nullptr, ID2D1Bitmap1 *bm=nullptr)
 
D2D1_BITMAP_PROPERTIES1 bitmapProperties () const
 
bool resize (int width, int height, const void *data=nullptr, int pitch=0)
 
QImage toImage (const QRect &rect)
 

Public Attributes

QScopedPointer< QWindowsDirect2DDeviceContextdeviceContext
 
ComPtr< ID2D1Bitmap1 > bitmap
 

Detailed Description

Definition at line 18 of file qwindowsdirect2dbitmap.cpp.

Constructor & Destructor Documentation

◆ QWindowsDirect2DBitmapPrivate()

QWindowsDirect2DBitmapPrivate::QWindowsDirect2DBitmapPrivate ( ID2D1DeviceContext *  dc = nullptr,
ID2D1Bitmap1 *  bm = nullptr 
)
inline

Definition at line 21 of file qwindowsdirect2dbitmap.cpp.

References deviceContext, and QWindowsDirect2DDeviceContext::get().

+ Here is the call graph for this function:

Member Function Documentation

◆ bitmapProperties()

D2D1_BITMAP_PROPERTIES1 QWindowsDirect2DBitmapPrivate::bitmapProperties ( ) const
inline

Definition at line 30 of file qwindowsdirect2dbitmap.cpp.

References QWindowsDirect2DContext::d2dFactory(), QWindowsDirect2DContext::instance(), QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, and QT_WARNING_PUSH.

Referenced by resize(), and toImage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resize()

bool QWindowsDirect2DBitmapPrivate::resize ( int  width,
int  height,
const void data = nullptr,
int  pitch = 0 
)
inline

Definition at line 46 of file qwindowsdirect2dbitmap.cpp.

References bitmapProperties(), deviceContext, QWindowsDirect2DDeviceContext::get(), and qWarning.

+ Here is the call graph for this function:

◆ toImage()

QImage QWindowsDirect2DBitmapPrivate::toImage ( const QRect rect)
inline

Definition at line 66 of file qwindowsdirect2dbitmap.cpp.

References bitmapProperties(), QImage::copy(), deviceContext, QImage::Format_ARGB32_Premultiplied, QWindowsDirect2DDeviceContext::get(), properties, qWarning, and rect.

+ Here is the call graph for this function:

Member Data Documentation

◆ bitmap

ComPtr<ID2D1Bitmap1> QWindowsDirect2DBitmapPrivate::bitmap

Definition at line 105 of file qwindowsdirect2dbitmap.cpp.

◆ deviceContext

QScopedPointer<QWindowsDirect2DDeviceContext> QWindowsDirect2DBitmapPrivate::deviceContext

Definition at line 104 of file qwindowsdirect2dbitmap.cpp.

Referenced by QWindowsDirect2DBitmapPrivate(), resize(), and toImage().


The documentation for this class was generated from the following file: