Because  you must to set explicitelly the background color.

Picture =new picture(w,h,gb.transparent)
Le 28 août 2014 16:40, "Jussi Lahtinen" <[email protected]> a écrit :

> > > It seems picture of PictureBox doesn't like to be drew on. Not sure
> why,
> >
> > The Picture property is NULL by default: it just owns a reference to a
> > Picture object you must create by yourself!
> >
>
> I noticed that and it wasn't the problem. This was the code I tried:
>
> PictureBox1.Picture = New Picture(DrawingArea1.Width, DrawingArea1.Height)
> Draw.Begin(PictureBox1.Picture)
>
> The problems was apparent memory corruption, ie the picture was a mess (or
> it became a mess when window was moved). See attachment.
>
>
> Jussi
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to