[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: getting binary information of a QPixmap
From:       Pupeno <pupeno () kde ! org>
Date:       2003-10-29 21:55:22
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday October 29 2003 16:21, Nicolas Goutte wrote:
> > QCString imageEncoded( KCodecs::base64Encode(buffer.buffer(),true) );
>
> Here you can check the size of buffer.buffer()

I started doing the checks to see where the problem was and yes, the buffer is 
empty, buffer.buffer().size() is 0;
(this is the code involved)
QImageIO imageio;
imageio.setImage(myNiceQImage);
imageio.setFormat("png");
QBuffer buffer;
buffer.open(IO_WriteOnly);
imageio.setIODevice(&buffer);
imageio.write();
buffer.close();

If anybody has an idea, please, tell me.
- -- 
Pupeno: pupeno@kde.org
http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/oDdNLr8z5XzmSDQRAi0bAKDBt6Z/xfj1oAIBss4tYUVB7IW26wCg1Gg8
oNcLfTahN2ke+97CGmdZeK8=
=HDrd
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic