[Gambas-user] DrawingArea to Picture or Image

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Aug 28 16:38:53 CEST 2014


> > 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Barcode_mangled-3.5.90.tar.gz
Type: application/x-gzip
Size: 11945 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140828/03450459/attachment.bin>


More information about the User mailing list