Missing form in GDIPLUS ?

Missing form in GDIPLUS ?

Postby ukoenig » Sat Mar 23, 2019 3:38 pm

Testing GDIPLUS I noticed a missing brush like used in

oGraphics:DrawRect( oPen, oBrush , 400, 400, 70, 60 ) // oPen, [oBrush], nLeft, nTop, nWidth, nHight
oGraphics:DrawEllipse( oPen, oBrush , 500, 100, 60, 60 ) // oPen, [oBrush], nLeft, nTop, nWidth, nHight

Image

existing method DrawPath for RoundRect :

oPath := Path():new()
oPath:AddRoundRect( 500, 400, 80, 100, 30 )
oGraphics:DrawPath( oPen, oPath )


to be changed :?:
or is there another solution

oPath := Path():new()
oPath:AddRoundRect( 630, 400, 80, 100, 30 )
oGraphics:DrawPath( oPen, oBrush, oPath ) :?: :?:

regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Missing form in GDIPLUS ?

Postby ukoenig » Sat Mar 23, 2019 4:05 pm

FOUND !!!

oPath := Path():new()
oPath:AddRoundRect( 500, 400, 80, 100, 30 )
oGraphics:DrawPath( oPen, oPath )

oPath := Path():new()
oPath:AddRoundRect( 630, 400, 80, 100, 30 )
oGraphics:FillPath( oBrush, oPath)

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Missing form in GDIPLUS ?

Postby cnavarro » Sat Mar 23, 2019 4:06 pm

Yes
oPath:FillPath( oGraphics, oBrush )
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Missing form in GDIPLUS ?

Postby Silvio.Falconi » Sat Mar 23, 2019 5:04 pm

Uwe,
you're able to create a rect as this :

Image

I need it for the oldest Slot I made ( I 'm making one for easter)

the line above is only a sample
I have 25 combinations
type
1 aaaaa
2 bbbbb
3 ccccc
4 cbabc ->>> the line above
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: Missing form in GDIPLUS ?

Postby ukoenig » Sat Mar 23, 2019 5:40 pm

Silvio,

do You mean a image splitted with a defined line
from top left to bottom right
created or only painted :?:

regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Missing form in GDIPLUS ?

Postby Silvio.Falconi » Mon Mar 25, 2019 8:02 am

remember ...
I have a dialog
and on it a background
on center 5 reels where the images run
there is a function check each combination

plinestring1="bbbbb" up
plinestring2="aaaaa" center
plinestring3="ccccc" down

the first 3 are the same

the 4th (as the th eline I made) is plinestring4="abcba"

it means that the same symbols are:

1. in line 1 first position (1 reel)
2. in line 2 and in the second position (2 reels)
3. in the 3 and in the third position (3 reel)
4. In line 2 and in the fourth position (reel 4)
5. in line 1 (center) and the fifth (5 reel)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests