• 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
Re: Compositing to custom view in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compositing to custom view in Cocoa


  • Subject: Re: Compositing to custom view in Cocoa
  • From: Andy Lee <email@hidden>
  • Date: Sat, 1 Jul 2006 08:56:05 -0400

On Jul 1, 2006, at 8:37 AM, Kenny Millar wrote:
I've been all through the docs and can't figure out how to pull a sepcific rectangle from an image, and store it in an NSImage or NSBitmapRepresentation.

I haven't done this myself, but looking at the methods for NSImage I would guess you create a new NSImage, send it -setSize: and - lockFocus, then tell the first image to - drawAtPoint:fromRect:operation:fraction:.


--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Compositing to custom view in Cocoa (From: Kenny Millar <email@hidden>)

  • Prev by Date: QuickTime... No NSMovieView
  • Next by Date: Re: catching modifier keys in a keydown event
  • Previous by thread: Re: Compositing to custom view in Cocoa
  • Next by thread: Re: Compositing to custom view in Cocoa
  • Index(es):
    • Date
    • Thread