I recently upgraded from 15.4 to 17.2 and noticed that these functions:
PictureMBS.CopyPictureWithMaskMBS
PictureMBS.CopyPictureWithoutMaskMBS
are now throwing exceptions when using normal (32 bit) Xojo picture objects:
Unhandled Exception: 0 Masks for Pictures with alpha channel is not supported
in XojoFramework.dylib$9150
The workaround is pretty simple:
Function CopyPictureWithoutMask(extends pic as Picture) As Picture
// This replaces the function in MBS 17.2
// return a picture containing only the RGB channels, ignoring the Alpha
if pic=nil then
return nil
end if
dim pm as new PictureMBS(pic,false)
return pm.CopyPicture
End Function
I think it would make sense for these two functions to work with new 32 bit
Xojo pictures, no?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info