PDA

View Full Version : how to read in image date from memory zone



elflord
2nd June 2009, 14:54
Hi all

I'm using intel's IPP for imaging processing tasks.
In IPP, images are represented as raw binary data: a pointer to a zone of memory

how can i turn its representation of image into QImage ?

wysota
2nd June 2009, 19:43
QImage::fromData() or QImage::loadFromData()

shentian
2nd June 2009, 19:44
Do you know which format IPP uses?

QImage has a constructor that creates an image from in-memory data in some specific formats.

Alternatively, use QImage::loadFromData to create an image from in-memory data in standard image formats (such as jpeg).