PlanetSquires Forums

Support Forums => General Board => Topic started by: Theo Gottwald on November 22, 2015, 04:51:52 PM

Title: Read Pixels from a Fireimage Control
Post by: Theo Gottwald on November 22, 2015, 04:51:52 PM
How can i read Colors of single Pixels from a Picture that is inside a Fireimage Control?
And how do i find out which size the picture has after scaling?
Title: Re: Read Pixels from a Fireimage Control
Post by: Wilko Verweij on November 23, 2015, 04:25:54 PM
Hi Theo, You want this from within a FireImage Control only? Or is it OK to analyse a graphics file?
Wilko
Title: Re: Read Pixels from a Fireimage Control
Post by: Theo Gottwald on November 23, 2015, 04:48:04 PM
I have just studied several examples, like these:

http://www.planetsquires.com/protect/forum/index.php?topic=2020.0

http://www.freebasic.net/forum/viewtopic.php?f=7&t=23858

http://www.planetsquires.com/protect/forum/index.php?topic=2020.0

http://www.planetsquires.com/protect/forum/index.php?topic=2201.msg17992#msg17992

from these i can paint on the form (and if i can paint, i can also read the pixels).

But it seems not to work inside the fireimage.

If possible i would want to really access the pixels in the control, reading and writing.
It seems possible using the WM_Paint, just i don't know how.

Somebody who can understand the FB-Code from, the Control here, might be able to solve the problem using tehg WM_Paint.

http://www.freebasic.net/forum/viewtopic.php?f=7&t=23858

But if you are good in telling me how to read and write a PNG File maybe in GDI PLus, this could buseful for another project i want to makle soon.
Therefore i am interested in any information.