• 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: Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage


  • Subject: Re: Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 10 Sep 2012 10:11:06 -0500

Please don't cross-post.

On Sep 10, 2012, at 2:31 AM, Abhijit Apte wrote:

> I can pick out NSImageRep objects of NSImage and then use [NSImageRep CGImageForProposedRect:context:hints:] method to extract CGImageRef. I can do grayscale conversion on each of these CGImageRefs, however I cannot put these back into a single NSImage.

Why not?  You can create NSBitmapImageReps from CGImages, set the size of each using -setSize:, and add them to an NSImage using -addRepresentation:.

Regards,
Ken


_______________________________________________

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

References: 
 >Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage (From: Abhijit Apte <email@hidden>)

  • Prev by Date: Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?
  • Next by Date: Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?
  • Previous by thread: Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage
  • Next by thread: Re: Converting NSImage with multiple image representations (HiDPI+LowDPI) into grayscale NSImage
  • Index(es):
    • Date
    • Thread