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_win_p.h File Reference

(65cda1f06aa24d9b75e81b37a5c23dcedbc53b92)

#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 454 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 546 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 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(), 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 486 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 646 of file qpixmap_win.cpp.

◆ qt_pixmapToWinHBITMAP()

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

Definition at line 355 of file qpixmap_win.cpp.

References Qt::AutoColor, QPlatformPixmap::BitmapType, 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 537 of file qpixmap_win.cpp.