Hi All,
I m using QT 4.2.2 on my Intel Mac.
I have a unsigned char * buffer.....
unsigned char *pBuff= new unsigned char[SizeToRead];
I gave some bytes read from the harddisk to construct a image and I m using the following to construct a image from the above Buffer
QImage::QImage ( uchar * data, int width, int height, Format format )
But Actually I donot know the format of the image so I can not able to give the parameter Format value.
So How can I know the format of the image from the Bytes I have read or there is another method to construct an image from uchar * buffer.
Thanks.
Bookmarks