ian
19th February 2007, 00:13
Hi,
I am trying to load a .BMP file into a QPixmap and then retrieve a HBITMAP handle so I can to do some Windows specific stuff. However, when I do this I am still seeing the background colour. How do I go about masking out the background colour in the pixmap?
At present I am attempting this:
QPixmap telescopePixmap( ":/images/Tscpblue.bmp" );
m_telescopeImage = telescopePixmap.toWinHBITMAP( QPixmap::PremultipliedAlpha );
I am trying to load a .BMP file into a QPixmap and then retrieve a HBITMAP handle so I can to do some Windows specific stuff. However, when I do this I am still seeing the background colour. How do I go about masking out the background colour in the pixmap?
At present I am attempting this:
QPixmap telescopePixmap( ":/images/Tscpblue.bmp" );
m_telescopeImage = telescopePixmap.toWinHBITMAP( QPixmap::PremultipliedAlpha );