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

List:       kde-kimageshop
Subject:    Re: Bwerk!
From:       Patrick Julien <freak () codepimps ! org>
Date:       2003-10-08 23:13:58
[Download RAW message or body]

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.

_______________________________________________
kimageshop mailing list
kimageshop@mail.kde.org
http://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

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