All,
i have the usual suspect of a png with a transparent background, the default view background is a square. I want to self mask so that the end image is a the shape of the original image without having to jump through redrawing everything, just bitmask it.
There is this demo code here
h ttps://developer.apple.com/library/content/samplecode/QuartzDemo/Listings/QuartzDemo_QuartzMaskingView_swift.html
this documentation
h ttps://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_images/dq_images.html
This seems like a lot of code to do something very simple. So is there some binary image function that does this without having to redraw?