FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Contour points
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Contour points
Posted: Mon May 27, 2024 06:34 PM

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 ?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Contour points
Posted: Mon May 27, 2024 08:00 PM

If the image is not very large you could use GetPixel( hDC, x, y ) --> nColor

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Contour points
Posted: Tue May 28, 2024 08:52 AM

Thanks !

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Contour points
Posted: Thu Jun 13, 2024 12:28 PM
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 ) ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Contour points
Posted: Thu Jun 13, 2024 02:34 PM
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.
greeting,

Jimmy
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Contour points
Posted: Thu Jun 13, 2024 05:22 PM
Hi, Jimmy ! Thanks for the offer, but I do not know your email. :(
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Contour points
Posted: Fri Jun 14, 2024 08:33 AM

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

greeting,

Jimmy
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Contour points
Posted: Fri Jun 14, 2024 10:33 AM

Jimmy, I sent a letter

Continue the discussion