• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Drawing with a mask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing with a mask


  • Subject: Drawing with a mask
  • From: David Remahl <email@hidden>
  • Date: Sat, 13 Apr 2002 14:09:42 +0200

Hi, all!

I want to draw an image based on a mask. What I mean is, I want to draw only
the parts of an image where its alpha and the mask alpha intersect. I have
tried all the different compositioning modes, and the one that is closest is
NSCompositeSourceIn, but that restricts the drawing of the source to the
alpha of the target but leaves the target visible. That is a problem if the
source image is smaller than the destination, as I don't want the
destination to show up.

What approach do you suggest that I take?

/ David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Drawing with a mask
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Undo in tables
  • Next by Date: AppleEvents from Cocoa?
  • Previous by thread: Re: Problems with image cell in table view (was: Re: NSImage -isValid not always right?)
  • Next by thread: Re: Drawing with a mask
  • Index(es):
    • Date
    • Thread