I have a canvas that displays a PNG with transparency. On 10.6 thru 10.10 it works fine. On 10.11 (and 10.11.1 beta) the transparency is not working correctly - some ares of the image seem to be masked with black instead of transparent.
For creating PNG files, we create a source image in Photoshop, export as 24-Bit PNG, then use our ICNSmini to create a 8-bit PNG from it with optimized transparency. So far I’ve not noticed any issues with El Capitan and PNG images, that said we are facing some weird crashes with some customer installations of El Capitan, which of course do not occur on our installations of El Capitan.
[quote=221215:@Michael Diehr]On 10.11 (and 10.11.1 beta) the transparency is not working correctly - some ares of the image seem to be masked with black instead of transparent.
[quote=221215:@Michael Diehr]I have a canvas that displays a PNG with transparency. On 10.6 thru 10.10 it works fine. On 10.11 (and 10.11.1 beta) the transparency is not working correctly - some ares of the image seem to be masked with black instead of transparent.
Anyone else seeing this?
I’m using Xojo 2014 R2.1[/quote]
I have seen that kind of thing under Windows but never under Mac OS X. Could be the way the picture is built. Would you be able to post it for closer examination ?
[quote=221359:@Tony Marino]Sam, just got message that ‘ICNSmini not available in US app store’
FYI[/quote]
That seems to be a bug with the app preview page in the browser. It’s trying to open the (iOS) App Store instead of the Mac App Store. If you click the “View In Mac App Store” button on that page it launches the Mac App Store correctly.
I’ve isolated it to the combination of Canvas.Transparent = False with a PNG image with alpha channel. I’ve uploaded a demo project here if you wish to test yourself: <https://xojo.com/issue/41225>
In this particular case, I actually wanted the Canvas to be transparent, so it’s an easy fix for me, but there may be other cases where this isn’t true, and/or it might represent some other deeper bug.
Setting Transparent to False means that the Paint event must fill all of its area with something opaque. This is an optimization that helps reduce the amount of drawing required.
Are you using a mask with your png file (that is, the same pict in b/w colour) ?
On recent Xojo versions, I was forced to add this feature to my picts to prevent a black border around it when clicked.