JasonGenX
JasonGenX

Reputation: 5434

Transparent PNG in NSView, Cocoa App

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?

Thanks.

Upvotes: 0

Views: 646

Answers (2)

Teodoro
Teodoro

Reputation: 11

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

Upvotes: 1

Peter Hosey
Peter Hosey

Reputation: 96333

NSImage.

Upvotes: 2

Related Questions