Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.5.1
-
Windows 7
-
2268b6bcdd1b4ddcd78753b81c477f0aa2855261 (qtbase/dev, 10.4.2018, 5.12),acb67561a3753306a2262f7221baca2d727fd4cb (qtwinextras/dev, 18.4.2018, 5.12)
Description
Add support for other image depths in toWinHBITMAP(), currently only 1 and 32bit depths are supported so other formats are converted up to 32bit which means the images end up being bigger than necessary. Adding support for 8, 16 and 24 bits would make it more efficient.
As of 5.6
HBITMAP toHBITMAP(const QPixmap &p, HBitmapFormat format = HBitmapNoAlpha); QPixmap fromHBITMAP(HBITMAP bitmap, HBitmapFormat format = HBitmapNoAlpha); HICON toHICON(const QPixmap &p); QImage imageFromHBITMAP(HDC hdc, HBITMAP bitmap, int width, int height); QPixmap fromHICON(HICON icon);