Hi,
How to write random data (like 1, 2, a, b..etc) in image file programmatically? It should be able to open in viewer after editing.
Thanks,
av.
Hi,
How to write random data (like 1, 2, a, b..etc) in image file programmatically? It should be able to open in viewer after editing.
Thanks,
av.
Check the QImage class documentation, it has some methods to access the pixel data (setPixel(), scanLine(), etc ...).
// edit: previous comments removed, i think i misunderstood the question probably you mean random access, not random values
Last edited by stampede; 17th November 2013 at 16:27.
av2306 (18th November 2013)
If you mean that you want to see those characters in the image, e.g. have they "1" symbol visible in an image viewer, then look at QPainter, specifically QPainter::drawText()
Cheers,
_
av2306 (19th November 2013)
Are you talking about steganography ?
OMG I thought about hex values(...) data (like 1, 2, a, b, ...)
Bookmarks