if I ve an QPixmap Object holding a image file.Does sizeof() work with this object to determine the number of bytes taken by that picture when loaded in memory?
Thank you in advance.
if I ve an QPixmap Object holding a image file.Does sizeof() work with this object to determine the number of bytes taken by that picture when loaded in memory?
Thank you in advance.
If you want to know the size of an image in bytes you load into a QImage and use its byteCount() method.
Cheers,
_
leebandemaha (7th September 2013)
However the size depends on the image format used and in most cases will be different than what size QPixmap occupies.
Bookmarks