Search found 29 matches: polygon

Return to advanced search

Re: Whether a point belongs to a polygon

Jimmy, thank you for your help! I tried it. It looks like everything is correct. :D
by Natter
Mon May 01, 2023 6:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Whether a point belongs to a polygon
Replies: 2
Views: 173

Re: Whether a point belongs to a polygon

hi, do you want to know if Point X,Y is "in" Polygon :?: if yes try this FUNCTION IsPointInPolygon(x, y, poly)   LOCAL isInside := .F.   LOCAL numVertices := Len(poly)      FOR i:=1 TO numVertices      LOCAL j := Mod(i, ...
by Jimmy
Mon May 01, 2023 5:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Whether a point belongs to a polygon
Replies: 2
Views: 173

Whether a point belongs to a polygon

Hi,

There is a polygon (aPlg:={{X,Y},{X,Y},,,{X,Y}}). How can I determine that a point (aPnt={X,Y}) belongs to this polygon?
I have tried several algorithms, but they all give the wrong result :(
by Natter
Mon May 01, 2023 4:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Whether a point belongs to a polygon
Replies: 2
Views: 173

Contour points

Hi,

A closed contour(polygon) is drawn on the window (for example, blue). I need to get a list of coordinates of points of this contour. How to do it ?
by Natter
Wed Mar 29, 2023 2:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Contour points
Replies: 0
Views: 214

Re: cyclometric circle

... when I select another record in the xbrowse , the class doesn't delete the previously drawn lines, how can I fix it? I would like to fill the polygon space with a gradient color but I can't do that test.prg #include "fivewin.ch"#include "constant.ch"Function Test()  ...
by Silvio.Falconi
Tue Dec 06, 2022 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 46
Views: 3156

Re: cyclometric circle

hi Silvio, Now How I can to refill the area with transparent color ? have not work with it yet i "think" you need Polygon API Function https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-polygon The Polygon function draws a polygon consisting of ...
by Jimmy
Mon Aug 01, 2022 5:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 46
Views: 3156

Re: Strange situation

... 0,0 OF oDlg NOBORDER   oImg:SetColor( CLR_GRAY, CLR_HRED ) // Added   ACTIVATE DIALOG oDlg CENTERED  Now you will see the border of the polygon in CLR_HRED. You can test changing the background color in oImg:SetColor() and see that the border is shown in the background color of the control. ...
by nageswaragunupudi
Fri Oct 29, 2021 3:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange situation
Replies: 12
Views: 1146

Re: Strange situation

Natter wrote:Hi,
1. When viewing .bmp in Windows the polygon frame has turned black
2. When opening .bmp in TBitmap or Timage the polygon frame turns white


That means the color used for the border is an alpha color/ transparent color.
We need the boundary in RGB color to use floodfill
by nageswaragunupudi
Fri Oct 29, 2021 2:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange situation
Replies: 12
Views: 1146

Strange situation

Hi, I need to paint over the space around the polygon in the picture - floodfill(). On the window, using the :line() method, I limit the green polygon. I make a bitmap of this window FW_MakeYourBitmap() and save it to the file FW_Save Image(). - ...
by Natter
Mon Oct 25, 2021 11:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange situation
Replies: 12
Views: 1146

Re: Change color in a bmp

... pixels around the coordinates of the mouse cursor. 3. Determine that it is a white color and change it. Only it's a long time. You can specify the polygon with the corresponding color yourself In words you are all good, I know what I should do, if I asked how to do it it means that perhaps I have ...
by Silvio.Falconi
Fri Mar 12, 2021 5:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Change color in a bmp
Replies: 25
Views: 2598

Re: Change color in a bmp

1, Get hDC.
2. Read pixels around the coordinates of the mouse cursor.
3. Determine that it is a white color and change it.

Only it's a long time.

You can specify the polygon with the corresponding color yourself
by Natter
Fri Mar 12, 2021 2:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Change color in a bmp
Replies: 25
Views: 2598

Re: Librería LeafLet

... Local 2: C " " Local 5: C " var mymap = L.map('mapid').setView( [ 40.4597525, -3.4822266 ], 13); " Local 6: C " L.polygon([ [ 40.4597525, -3.4822266], [ 40.4646123, -3.4649566], [ 40.4559019, -3.477471] ]).addTo(mymap).bindPopup('I am a polygon.'); L.marker( [ 40.4597525, ...
by caducca
Wed Oct 30, 2019 1:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Librería LeafLet
Replies: 28
Views: 3512

Re: Librería LeafLet

... Local 2: C " Local 3: U Local 4: U Local 5: C " var mymap = L.map('mapid').setView( [ " Local 6: C " L.polygon([ " Local 7: U Local 8: U Local 9: C " var mymap = L.map('mapid').setView( [ " Local 10: N 0 Local 11: C ", " Local ...
by caducca
Wed Oct 30, 2019 12:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Librería LeafLet
Replies: 28
Views: 3512

Re: request for Tcalex

... the gurus are able to make it , I not found the part of code where tcalex show that text or create that box tab perhaps we can modify it with polygon function to draw a good tab.
by Silvio.Falconi
Mon Oct 28, 2019 8:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: request for Tcalex
Replies: 2
Views: 511

Re: Cut out an area of the screen

I drew something on the window - a line, a polygon, etc.. Then I want to erase the painting. So, you are not talking about the desktop, but FWH application window. If you let us see your code how are you drawing and displaying the line, polygon, ...
by nageswaragunupudi
Sat Apr 20, 2019 6:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cut out an area of the screen
Replies: 15
Views: 1932
Next

Return to advanced search