[Qt-interest] Getting number of pixels in a QImage

Rainer Wiesenfarth Rainer.Wiesenfarth at inpho.de
Mon Apr 6 09:13:23 CEST 2009


From: qt-interest-bounces at trolltech.com 
> i have a QImage, i want to get the no of pixels that are 
> present horizontally and vertically i e x and y....
> QImage::width() and QImage::height() are not giving the 
> proper results...
> can anyone suggest me a way  out??

width() and heigth() should return the correct values, if they don't, there
is something wrong with the code.

As most of us are not clairvoyant, some details and a code snippet may lead
to more useful answers than mine.

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
INPHO GmbH * Smaragdweg 1 * 70174 Stuttgart * Germany
phone: +49 711 2288 10 * fax: +49 711 2288 111 * web: www.inpho.de
place of business: Stuttgart * managing director: Johannes Saile
commercial register: Stuttgart, HRB 9586
Leader in Photogrammetry and Digital Surface Modelling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3359 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090406/768a8bde/attachment.bin 


More information about the Qt-interest-old mailing list