-
QImage
Hi,
I have a code in QT-3 like this
new QImage(vid_io_buffer + vid_io_offsets[u], w, h, 32, 0, 0, QImage::IgnoreEndian);
how can I create it in QT-4
my problum is in 5th and 6 th arguments. 0,0;
I try it like this
QImage(vid_io_buffer + vid_io_offsets[u], w, h, 32, QImage::Format_RGB32);
then, how can i set the QRgb * colortable, int numColors. In first line it is 0,0.
Please help me...
-
Re: QImage
Why do you need those parameters? you passed NULL/0 anyway.
You can pass one of the available formats to the QImage constructor, to specify what colorspace your image is. For instance, you can pass QImage::Format_RGB32 or Format_Mono.