开发者

BitBlt in Qt4?

开发者 https://www.devze.com 2023-01-10 06:36 出处:网络
What is开发者_JAVA技巧 the recommended method of copying one QImage into another at a particular position in Qt4?

What is开发者_JAVA技巧 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?


Use QPainter to draw to your image.

QPainter painter( &targetImage );

painter.drawImage( ... );


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

0

精彩评论

暂无评论...
验证码 换一张
取 消