[Qt-interest] how to read bitmap emdedded in XML

Atlant Schmidt aschmidt at dekaresearch.com
Tue Aug 17 21:11:33 CEST 2010


André:


>     http://doc.trolltech.com/3.3/qpixmap.html
> Qt 3.3? Let's keep that version where it belongs: in the Troll Museum :-)

  Sorry! Google got me! (I wish we could get the page rank on all
  those rank old Qt 3.3 pages set much lower than the page rank
  on the Qt 4.6.2/3 pages!)

                                                Atlant

________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Andre Somers
Sent: Tuesday, August 17, 2010 14:45 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] how to read bitmap emdedded in XML

Hi,

Op 17-8-2010 19:49, Atlant Schmidt schreef:

Eckhard:



  There's:



     QImage::loadFromData( const uchar * data,

                           int len,

                           const char * format = 0 )





  That looks like it's close to what you want, except

  that it delivers a QImage instead of a QPixmap.
I was more thinking about QImage::fromData(const QByteArray& data, char* format = 0). And since you know the format from the file name...


But then...



    http://doc.trolltech.com/3.3/qpixmap.html
Qt 3.3? Let's keep that version where it belongs: in the Troll Museum :-)



    There are (slow) functions to convert between

    QImage and QPixmap: convertToImage() and

    convertFromImage().



  ...if you really need the pixmap and not the image.
Depends on the platform and rendering engine you use. If you use the rasterengine, it's not that slow anymore.

André



Click here<https://www.mailcontrol.com/sr/Sjjt8tYSydvTndxI!oX7UpIe2cJSs1Vgo+KXbYsQaJ+HipHbJyuteBupVMGnckvK0hsLU1F1Srji5jK2rp2Ftw==> to report this email as spam.

________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100817/f6ad7f7a/attachment.html 


More information about the Qt-interest-old mailing list