[Gambas-user] DrawingArea to Picture or Image

Fabien Bodard gambas.fr at ...626...
Thu Aug 28 17:31:20 CEST 2014


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" <jussi.lahtinen at ...626...> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



More information about the User mailing list