The deprecation list tells me that instead of .Mask I should use .CopyMask. However, when I do that I only get a NilObjectException and I don’t see anything nil.
Old code:
[code]static p As Picture
if p = nil or p.Width <> Width or p.Height <> Height then
p = new Picture(Width , Height , 32) //Mask
end
dim gg As Graphics = p.Mask.Graphics[/code]
If I use p.CopyMask.Graphics in the last line I get a NOE. However both p and p.CopyMask are not nil.
If I compare the result of .Mask and .CopyMask with
dim p1 as Picture = p.mask
dim p2 as Picture = p.CopyMask
I don’t see a difference. Am I doing something wrong?
Xojo 2019r2 with High Sierra.