Hey guys, just red the documentation:
Dim Foo As Picture(100, 100) does not creates a .Graphics. To get one, you have to add a depth.
If you specify a depth of zero, a picture with no pixel map at all is created, but with a preinitialized Objects property. Use this option for creating vector graphics pictures via the set of Object2D subclasses.
To be sure of what I wrote, try to draw something in graphics as below, and cry
[code]Dim Foo As Picture(100, 100)
Foo.Graphics.ForeColor = RGB(255,0,0)
Foo.Graphics.Fill Rect 0,0, 50,50[/code]
Guess what happend ?
Also, while I use VirtualBox to run Windows 10 (1903) Pro, I have a Mac Book Pro running El Capitan and this is my primary development environment.
BTW: try the code below without the Depth:
[code] Dim Clip As New Clipboard
Dim Pict As New Picture(Self.Width, Self.Height, 32)
Clip.Picture = Pict
It will not work. The Nil will be on the
At a moment in the past, I started to forget to use (stop using) the Depth parameter and this annoy me, sometimes.