FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour question gdiplus
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
question gdiplus
Posted: Tue Sep 24, 2024 11:20 AM
If I made a figure sample :




local oGraphics := Graphics():New( hDC )
local oPen := Pen():New( 255, 0, 0, 255 , 10 , .T.)
local oBrush2 := Brush():NewSolidBrush( 150, 0, 255, 167 )

oPen:SetInset( )
oGraphics:DrawEllipse( oPen2, oBrush2 , 500, 100, 60, 60 )


then I want clear this figure to create another over ,

sample : oGraphics:DrawRect( oPen2, oBrush2 , 500, 100, 70, 60 )



so how I can erase the first figure ? how I must do ?
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: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: question gdiplus
Posted: Tue Sep 24, 2024 06:05 PM

Silvio,

Redraw the background only over the part where the old figure is.

oGraphics:DrawEllipse( oPen2, oBrush2 , 500, 100, 60, 60 )

but for oBrush2 take the background brush.

Or clear the entire drawing area.

Best regards,

Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: question gdiplus
Posted: Wed Sep 25, 2024 06:17 AM
Otto wrote:Silvio,
Redraw the background only over the part where the old figure is.
oGraphics:DrawEllipse( oPen2, oBrush2 , 500, 100, 60, 60 )
but for oBrush2 take the background brush.
Or clear the entire drawing area.

Best regards,
Otto
>Redraw the background only over the part where the old figure is.

and how do you do it? Let's assume that I don't know the coordinates of the previous drawing, let's not sit on the chair and write sentences without providing valid help with instructions and working scripts

>but for oBrush2 take the background brush.
>Or clear the entire drawing area.


I actually asked how to clean the whole area but I didn't find anything on gdiplus



Mr Otto you ever worked with gdiplus?
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: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: question gdiplus
Posted: Wed Sep 25, 2024 01:59 PM

oGraphics:DrawEllipse( oPen2, oBrush2 , 500, 100, 60, 60 )

Isn't it this you want to delete?

Continue the discussion