Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qpixmap_win_p.h File Reference
#include <QtGui/private/qtguiglobal_p.h>
#include <QtCore/qt_windows.h>
+ Include dependency graph for qpixmap_win_p.h:

Go to the source code of this file.

Functions

Q_GUI_EXPORT HBITMAP qt_createIconMask (const QBitmap &bitmap)
 
Q_GUI_EXPORT HBITMAP qt_imageToWinHBITMAP (const QImage &imageIn, int hbitmapFormat=0)
 
Q_GUI_EXPORT HBITMAP qt_pixmapToWinHBITMAP (const QPixmap &p, int hbitmapFormat=0)
 
Q_GUI_EXPORT QImage qt_imageFromWinHBITMAP (HBITMAP bitmap, int hbitmapFormat=0)
 
Q_GUI_EXPORT QPixmap qt_pixmapFromWinHBITMAP (HBITMAP bitmap, int hbitmapFormat=0)
 
Q_GUI_EXPORT HICON qt_pixmapToWinHICON (const QPixmap &p)
 
Q_GUI_EXPORT QImage qt_imageFromWinHBITMAP (HDC hdc, HBITMAP bitmap, int w, int h)
 
Q_GUI_EXPORT QPixmap qt_pixmapFromWinHICON (HICON icon)
 

Function Documentation

◆ qt_createIconMask()

Q_GUI_EXPORT HBITMAP qt_createIconMask ( const QBitmap bitmap)

Definition at line 210 of file qpixmap_win.cpp.

References QImage::Format_Mono, and qt_createIconMask().

+ Here is the call graph for this function:

◆ qt_imageFromWinHBITMAP() [1/2]

Q_GUI_EXPORT QImage qt_imageFromWinHBITMAP ( HBITMAP  bitmap,
int  hbitmapFormat = 0 
)

Definition at line 453 of file qpixmap_win.cpp.

References imageFromWinHBITMAP_DibSection(), and imageFromWinHBITMAP_GetDiBits().

+ Here is the call graph for this function:

◆ qt_imageFromWinHBITMAP() [2/2]

Q_GUI_EXPORT QImage qt_imageFromWinHBITMAP ( HDC  hdc,
HBITMAP  bitmap,
int  w,
int  h 
)

Definition at line 545 of file qpixmap_win.cpp.

References copyImageDataCreateAlpha(), QImage::Format_ARGB32_Premultiplied, and getDiBits().

+ Here is the call graph for this function:

◆ qt_imageToWinHBITMAP()

Q_GUI_EXPORT HBITMAP qt_imageToWinHBITMAP ( const QImage imageIn,
int  hbitmapFormat = 0 
)

Definition at line 228 of file qpixmap_win.cpp.

References BITMAPINFO_COLORTABLE256::bmiColors, QImage::convertToFormat(), flipRgb3(), format32(), QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_BGR888, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB32, QImage::Format_RGB555, QImage::Format_RGB888, initBitMapInfo(), QImage::isNull(), qErrnoWarning(), qRgbToRgbQuad(), and qt_imageToWinHBITMAP().

Referenced by qt_imageToWinHBITMAP(), and qt_pixmapToWinHBITMAP().

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

◆ qt_pixmapFromWinHBITMAP()

Q_GUI_EXPORT QPixmap qt_pixmapFromWinHBITMAP ( HBITMAP  bitmap,
int  hbitmapFormat = 0 
)

Definition at line 485 of file qpixmap_win.cpp.

References QPixmap::fromImage(), and imageFromWinHBITMAP_GetDiBits().

Referenced by QWindowsScreen::grabWindow().

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

◆ qt_pixmapFromWinHICON()

Q_GUI_EXPORT QPixmap qt_pixmapFromWinHICON ( HICON  icon)

Definition at line 645 of file qpixmap_win.cpp.

◆ qt_pixmapToWinHBITMAP()

Q_GUI_EXPORT HBITMAP qt_pixmapToWinHBITMAP ( const QPixmap p,
int  hbitmapFormat = 0 
)

Definition at line 354 of file qpixmap_win.cpp.

References Qt::AutoColor, QPlatformPixmap::BitmapType, QPlatformPixmap::classId(), QRasterPlatformPixmap::fromImage(), QPlatformPixmap::PixmapType, platformPixmap(), qt_imageToWinHBITMAP(), qt_pixmapToWinHBITMAP(), and QPlatformPixmap::RasterClass.

Referenced by QWindowsCursor::createPixmapCursor(), QWin32PrintEngine::drawPixmap(), QWin32PrintEngine::drawTiledPixmap(), and qt_pixmapToWinHBITMAP().

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

◆ qt_pixmapToWinHICON()

Q_GUI_EXPORT HICON qt_pixmapToWinHICON ( const QPixmap p)

Definition at line 536 of file qpixmap_win.cpp.