Hi,
Is there any method to convert QImage to QByteArray???
Thank You
Printable View
Hi,
Is there any method to convert QImage to QByteArray???
Thank You
this example was taken from assistant
Thank You..
Is there any fuction to convert QImage to uchar* . Actually i used bits(), scanline() etc. Since it returns address, i cannot manipulate the data.
Actually i need to copress the QImage row data using qCompress(). Can anyone help me out???
you can use this function
or
i have notice to compress QByteArray is faster & smal -> http://liblzf.plan9.de/
i found this tip on KDE source...
Code:
// Lossless compression using LZF algorithm, this is faster on modern CPU than // the original implementation in http://liblzf.plan9.de/ // compression data on cache to not fill to match ram buffer /* search on kde source : *xml */ static int lzff_compress(const void* input, int length, void* output, int maxout) static int lzff_decompress(const void* input, int length, void* output, int maxout)