Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BitBlt in Qt4?

Tags:

qt

qt4

bitblt

What is the recommended method of copying one QImage into another at a particular position in Qt4?

QImage::bitblt was removed in Qt4.

Does the QImage now need to be converted to a PixMap and back?

like image 460
user408209 Avatar asked Aug 02 '10 01:08

user408209


2 Answers

Use QPainter to draw to your image.

QPainter painter( &targetImage );

painter.drawImage( ... );
like image 62
Tom Sirgedas Avatar answered Sep 30 '22 11:09

Tom Sirgedas


From Qt Assistant: "Use copy() or QPainter::drawImage() instead."

like image 33
Ekimov Alexander Avatar answered Sep 30 '22 13:09

Ekimov Alexander