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
QWindowsNativeImage Class Reference

Windows Native image. More...

#include <qwindowsnativeimage_p.h>

+ Collaboration diagram for QWindowsNativeImage:

Public Member Functions

 QWindowsNativeImage (int width, int height, QImage::Format format)
 
 ~QWindowsNativeImage ()
 
int width () const
 
int height () const
 
QImageimage ()
 
const QImageimage () const
 
HDC hdc () const
 

Static Public Member Functions

static QImage::Format systemFormat ()
 

Detailed Description

Windows Native image.

Note that size can be 0 (widget autotests with zero size), which causes CreateDIBSection() to fail.

See also
QWindowsBackingStore

Definition at line 25 of file qwindowsnativeimage_p.h.

Constructor & Destructor Documentation

◆ QWindowsNativeImage()

QWindowsNativeImage::QWindowsNativeImage ( int width,
int height,
QImage::Format format )

Definition at line 76 of file qwindowsnativeimage.cpp.

References createDIB(), QImage::paintEngine(), Q_ASSERT, QPaintEngine::Raster, and QPaintEngine::type().

+ Here is the call graph for this function:

◆ ~QWindowsNativeImage()

QWindowsNativeImage::~QWindowsNativeImage ( )

Definition at line 94 of file qwindowsnativeimage.cpp.

Member Function Documentation

◆ hdc()

HDC QWindowsNativeImage::hdc ( ) const
inline

Definition at line 40 of file qwindowsnativeimage_p.h.

Referenced by QWindowsBackingStore::flush(), and QWindowsBackingStore::getDC().

+ Here is the caller graph for this function:

◆ height()

int QWindowsNativeImage::height ( ) const
inline

Definition at line 35 of file qwindowsnativeimage_p.h.

◆ image() [1/2]

QImage & QWindowsNativeImage::image ( )
inline

Definition at line 37 of file qwindowsnativeimage_p.h.

Referenced by QWindowsBackingStore::beginPaint(), QWindowsBackingStore::flush(), QWindowsBackingStore::paintDevice(), QWindowsBackingStore::resize(), QWindowsBackingStore::scroll(), and QWindowsBackingStore::toImage().

+ Here is the caller graph for this function:

◆ image() [2/2]

const QImage & QWindowsNativeImage::image ( ) const
inline

Definition at line 38 of file qwindowsnativeimage_p.h.

◆ systemFormat()

QImage::Format QWindowsNativeImage::systemFormat ( )
static

Definition at line 106 of file qwindowsnativeimage.cpp.

References QImage::Format_RGB16, and QImage::Format_RGB32.

Referenced by QWindowsFontEngine::alphaMapForGlyph(), and QWindowsBackingStore::resize().

+ Here is the caller graph for this function:

◆ width()

int QWindowsNativeImage::width ( ) const
inline

Definition at line 34 of file qwindowsnativeimage_p.h.


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