开发者

Transparent PNG in NSView, Cocoa App

开发者 https://www.devze.com 2023-01-24 16:23 出处:网络
I have a project with a transparent PNG file under my resources, available at runtime. I\'d like to load it up when my view is created and project it, while keeping its transparency onto the NSView in

I have a project with a transparent PNG file under my resources, available at runtime. I'd like to load it up when my view is created and project it, while keeping its transparency onto the NSView instance I have.

Any pointers?

开发者_StackOverflowThanks.


NSImage.


Use some of the methods drawn... and, in operation: use the number 5 -> NSCompositeSourceAtop ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消