[Qt-interest] QMacPixmapData::fromImage
Witteveen, Arnt
ArntW at enfocus.com
Thu Mar 24 17:17:38 CET 2011
Hi,
I was debugging through some drawing code, and stepped into
QMacPixmapData::fromImage. I noticed that if the image is not
Format_ARGB32_Premultiplied, not 'force_mono' nor 'conv8', nor d == 16
|| d == 24, it then comes to
// different size or depth, make a new pixmap
resize(w, h);
(and in that resize, the pixel data is copied).
I'm remaking the image that ends up here on every re-draw, and I'm
making it in the same way, with the same size etc on every draw, so I'm
pretty certain I have the same size and bit depth. So why is it
resizing?
Arnt
(Qt 4.7.1 on osx 10.5.8, but I see the same code in Qt4.7.2)
More information about the Qt-interest-old
mailing list