Before 2019R2, there was that convenient property that controlled white areas transparency.
aPicture.Transparent = newIntegerValue
Controls the transparency of the white ‘layer’ of the picture.
It can take on either of the following values:
0 - Not transparent.
1 - White is transparent.
It has disappeared.
How do I do that, now ? I suspect it could be done with Mask, but I never used it.
I will appreciate any help
Transparent was deprecated years ago in favor of Alpha Channels wasn’t it…
I have code I wrote in 2016, where that was used, but even though the code was never recompiled, once I installed Mojave, that feature didn’t seem to work anymore.
Michel… here is some code that will make a mask for a PNG
Dim f As FolderItem
Dim p As picture
dim m as picture
Dim pg As graphics
Dim p_rgb As RGBSurface
Dim m_rgb As RGBSurface
For x=0 To pg.Width
For y=0 To pg.Height
if p_rgb.pixel(x,y)=color.white then continue