what is the best way to get the resolution of the various formats of images?
General and Desktop
3
Posts
1
Posters
676
Views
1
Watching
-
@opengpu2 i now simply use:
QPixmap pixmap(path);
int w = pixmap.width();
int h = pixmap.height();but i found that sometimes i can't open some image file....eg.i can open some TGA, but failed to get the w and h of some TGA...they return 0....that file can be open with Photoshop.....