• 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: altering an NSImage by access to pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: altering an NSImage by access to pixels


  • Subject: Re: altering an NSImage by access to pixels
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 18 Aug 2011 16:26:36 -0700

On Thu, Aug 18, 2011 at 4:23 PM, David Duncan <email@hidden> wrote:
> On Aug 18, 2011, at 4:16 PM, James Walker wrote:
>
>> Let's say I have an NSImage that contains some representation other than an NSBitmapImageRep, and I want to play with the pixel values.
>
>
> Create your NSBitmapImageRep
> Create a NSGraphicsContext from that rep and make it current
> Draw your NSImageRep using -draw (or -drawAtPoint: or -drawInRect:) to draw into the current graphics context.
>
> You now have an NSBitmapImageRep with your image contents.

I'd point you at the Snow Leopard AppKit release notes, which contain
a very long discussion about this topic (presumably written by David),
but it seems there are only the Lion and Leopard versions available
online. :(

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: altering an NSImage by access to pixels
      • From: David Duncan <email@hidden>
References: 
 >altering an NSImage by access to pixels (From: James Walker <email@hidden>)
 >Re: altering an NSImage by access to pixels (From: David Duncan <email@hidden>)

  • Prev by Date: Re: altering an NSImage by access to pixels
  • Next by Date: Re: altering an NSImage by access to pixels
  • Previous by thread: Re: altering an NSImage by access to pixels
  • Next by thread: Re: altering an NSImage by access to pixels
  • Index(es):
    • Date
    • Thread