Is there a simple way to access pixels of an image informations and manipulate them in Qt?
-
You can get the pixel information:
@
uint color = image.pixel(10, 10);@color will be a 4x8 bit components of the color of the pixel at x 10 and y 10
@image.setPixel(20, 20, color);@
the pixel at x 20 and y 20 will become the same color as the pixel at 10 10
-
[quote author="utcenter" date="1367679753"]It is not that hard to do that yourself, plus I don't think I'd be making you a favor if I do what begin to suspect is your homework for you.[/quote]
ok , thank you
but what is the unit in your example?
is it a type or a structure?