Missing form in GDIPLUS ?

Post Reply
User avatar
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Missing form in GDIPLUS ?

Post by ukoenig »

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
Contact:

Re: Missing form in GDIPLUS ?

Post by ukoenig »

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
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Missing form in GDIPLUS ?

Post by cnavarro »

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
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Missing form in GDIPLUS ?

Post by Silvio.Falconi »

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
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Missing form in GDIPLUS ?

Post by ukoenig »

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
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Missing form in GDIPLUS ?

Post by Silvio.Falconi »

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
Post Reply