What's faster? Read a pixmap saved to a file, or read one from a file?
What's faster? Read a pixmap saved to a file, or read one from a file?
i m sorry but both of your questions are one and the same. try to rephrase
Read a pixmap saved to a file:
I read a pixmap saved inside an .xml file.
Ex:
<?xml version="1.0"?>
<pixmap>
01010110011001010101001
01001001001001010100100
</pixmap>
Read a pixmap from a file:
Ask QT to grab the icon from explorer.exe, and make a QPixmap out of it.
Sorry, but who does such thing? It's "stupid", why not easily save it in the original file format or any other better.
Don't understand. What icon? Do you mean a normal image file, which lays on your hard disk? If so, that's the way!Read a pixmap from a file:
Ask QT to grab the icon from explorer.exe, and make a QPixmap out of it.
I mean an applications icon retrieved with QFileIconProvider .
if you are only concerned with speed... just do a test yourself
Qt Code:
QTime time; time.start(); Read_a_pixmap_saved_to_a_file(); qDebug<<"Time taken = "<<time.elapsed()<<"ms"; time.restart(); Read_a_pixmap_from_a_file(); qDebug<<"Time taken = "<<time.elapsed()<<"ms";To copy to clipboard, switch view to plain text mode
Ok. But wich one would use less system resources?
ultimately you will read the same amount of data (image) from any method.
Ok. If thats the case... Thanks.
Bookmarks