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 ?
question gdiplus
- Silvio.Falconi
- Posts: 7104
- Joined: Thu Oct 18, 2012 7:17 pm
question gdiplus
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
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
Re: question gdiplus
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.
oGraphics:DrawEllipse( oPen2, oBrush2 , 500, 100, 60, 60 )
but for oBrush2 take the background brush.
Or clear the entire drawing area.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Silvio.Falconi
- Posts: 7104
- Joined: Thu Oct 18, 2012 7:17 pm
Re: question gdiplus
>Redraw the background only over the part where the old figure is.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
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 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
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
Re: question gdiplus
oGraphics:DrawEllipse( oPen2, oBrush2 , 500, 100, 60, 60 )
Isn't it this you want to delete?
Isn't it this you want to delete?
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************