FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Missing form in GDIPLUS ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Missing form in GDIPLUS ?
Posted: Sat Mar 23, 2019 03: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



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.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Missing form in GDIPLUS ?
Posted: Sat Mar 23, 2019 04: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 :-)
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.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Missing form in GDIPLUS ?
Posted: Sat Mar 23, 2019 04: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Missing form in GDIPLUS ?
Posted: Sat Mar 23, 2019 05:04 PM
Uwe,
you're able to create a rect as this :



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 March-April 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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Missing form in GDIPLUS ?
Posted: Sat Mar 23, 2019 05: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.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Missing form in GDIPLUS ?
Posted: Mon Mar 25, 2019 08: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 March-April 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

Continue the discussion