Line arround polypolygon

Line arround polypolygon

Postby Marc Vanzegbroeck » Fri Jun 29, 2012 9:59 am

Hi,

I'm drawing polygons on a window with (vsolid is an array with the coördinates)
Code: Select all  Expand view

local hBrush1  := CreateSolidBrush( nRGB( 255, 0, 0) )
hOldBrush := SelectObject( sWnd:hDC, hBrush1 )
polypolygon( sWnd:hDC, vsolid )


The polygon is drawn in red, but there is a black line around it, how can I change this color?

Thanks,
MArc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Line arround polypolygon

Postby Marc Vanzegbroeck » Fri Jun 29, 2012 11:14 am

Hi,

Problem soved with
Code: Select all  Expand view
local hPen1 := CreatePen( 0 , 1, nRGB( 255, 0, 0) )
local hBrush1  := CreateSolidBrush( nRGB( 255, 0, 0) )
hOldBrush := SelectObject( sWnd:hDC, hBrush1 )
hOldPen := SelectObject( sWnd:hDC, hPen1 )
polypolygon( sWnd:hDC, vsolid )


Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 107 guests