Page 1 of 1

Contour points

Posted: Mon May 27, 2024 6:34 pm
by Natter
Hi,

There is a one-color arbitrary contour. I need to get the screen coordinates of the points that make up this contour. How can I do this ?

Re: Contour points

Posted: Mon May 27, 2024 8:00 pm
by Antonio Linares
If the image is not very large you could use GetPixel( hDC, x, y ) --> nColor

Re: Contour points

Posted: Tue May 28, 2024 8:52 am
by Natter
Thanks !

Re: Contour points

Posted: Thu Jun 13, 2024 12:28 pm
by Natter
The screen shows a contour of the same color. I need to get the screen coordinates of the points of this contour via GetPixel (in 5 pixel increments).
Does anyone have an algorithm for such a bypass (so as not to reinvent the wheel :D ) ?

Re: Contour points

Posted: Thu Jun 13, 2024 2:34 pm
by Jimmy
hi,
Natter wrote:There is a one-color arbitrary contour. I need to get the screen coordinates of the points that make up this contour. How can I do this ?
i have a App called "Skincode" which can generate a Array from contour of a Bitmap.
write me a private Email and i can send it to you.

Re: Contour points

Posted: Thu Jun 13, 2024 5:22 pm
by Natter
Hi, Jimmy ! Thanks for the offer, but I do not know your email. :(

Re: Contour points

Posted: Fri Jun 14, 2024 8:33 am
by Jimmy
hi Natter,

write me a Email to : Auge_Ohr AT web.de
and i will send you "skincode" app to generate Array for aRegion of Bitmap

Re: Contour points

Posted: Fri Jun 14, 2024 10:33 am
by Natter
Jimmy, I sent a letter