[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: getting binary information of a QPixmap
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2003-10-29 22:06:40
[Download RAW message or body]
On Wednesday 29 October 2003 22:55, Pupeno wrote:
> -----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);
Sorry, my error. Switch those 2 lines. (First define the IODevice, then open.
> imageio.write();
> buffer.close();
>
> If anybody has an idea, please, tell me.
Have a nice day!
> - --
> 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 <<
>> 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