[Qt-interest] Adding arbitrary depth to Graphics Scene & Friends

Javier Urien javierurien at gmail.com
Tue Apr 26 16:36:17 CEST 2011


On Tue, Apr 26, 2011 at 11:28, Jason H <scorp1us at yahoo.com> wrote:

> That is all fine and well.
>
> Your data will always be in your maximum bit depth. Your operations
> (graphics or I/O) would write in your bit depth.
> You'd probably want something like:
> QByteArray highBPPData;
> QPixmap displayData;
>
> Do your operations on highBPPData, and when you modify it, either
> copy/convert the effected region of highBPPData (raster op) and splice it
> into displayData, or call the same function on the displayData (like for
> drawLine() (vector ops)). And just use paint(...)to paint the displayData.
>

But what of the operations that the framework provides? For example, if the
framework operates a QGraphicsTransform, it would be on displayData, and if
highBPPData is of different data type I would not be able to map it back. Or
perhaps I am missing something.

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110426/a241851b/attachment.html 


More information about the Qt-interest-old mailing list