Bwerk!

Patrick Julien freak at codepimps.org
Wed Oct 8 20:13:58 CEST 2003


On October 8, 2003 05:32 pm, Boudewijn Rempt wrote:
> On Wednesday 08 October 2003 23:04, Boudewijn Rempt wrote:
> >     QImage image = QImage(  ( int ) pixels->data,
> >                             r.width(),
> >                             r.height(),
> >                             tileMgr->depth() );
>
> Er... maybe it was a bad idea to try and cast an array of byte to int... On
> the other hand, QImage::QImage ( const QByteArray & array )  doesn't seem
> applicable, either.

Hmm, well, no you can do that, just not this way :)  Look at the RGB color 
strategy.



More information about the kimageshop mailing list