[Gambas-user] Paint again

Charlie Reinl Karl.Reinl at ...2345...
Mon Dec 17 11:49:07 CET 2012


Am Sonntag, den 16.12.2012, 19:02 +0100 schrieb Benoît Minisini:
> Le 16/12/2012 14:11, Charlie Reinl a écrit :
> > Salut,
> >
> > as you can see on Bildschirmfoto.png the Paint.Background is changed  to
> > Color.Cyan (65535) then on Bildschirmfoto-1.png with  Paint.Brush =
> > Paint.Color(0) the Paint.Brush has changed, but also the
> > Paint.Background was set to 0.
> > Bildschirmfoto-2.png is the result.
> >
> > So what is it, a bug in Paint, in Debug-Window or bad use ?
> >
> 
> Paint.Background is a synonymous of Paint.Brush with a single color.
> 

Oh, thats right.
But sorry, that I don't understand.
By coding 

  Paint.Background = Color.Cyan	     ' set the Background Color
  Paint.Brush = Paint.Color(0)	     ' set the Foreground Color
  Paint.ClipRect(10, 135,50,22)      ' draw Cyan Rectangle
  Paint.Text("Hello",10,135,50,22,3) ' write Hallo into the Rectangle
  Paint.Fill

Paint.Background is really confusing for setting a 'Foreground' 

 
-- 
Amicalement
Charlie





More information about the User mailing list