• 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
Getting the pixels from an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the pixels from an NSImage


  • Subject: Getting the pixels from an NSImage
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 18 Feb 2005 16:12:20 -0500
  • Organization: Rogue Research

Hi all,

My app needs to get the pixels from an NSImage (so I can manipulate them
'by hand').  My understanding is that NSBitmapImageRep's bitmapData: will
do this.  It works generally, but sometimes NSImage's representations:
gives me a NSCachedImageRep instead (and there are no other
representations).  (I'm only dealing with jpegs here, no vector format files.)

How can I reliably get an NSBitmapImageRep from an NSImage?

Really what I'd like is for the OS to give me an RGB array for a bitmap
image file I give it. :) Maybe NSImage and friends is not the way?

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

  • Follow-Ups:
    • Re: Getting the pixels from an NSImage
      • From: Gerard Iglesias <email@hidden>
  • Prev by Date: Re: Listening to bindings
  • Next by Date: Learn Bindings Materials?
  • Previous by thread: How to display two windows in one nib file(not the main nib file)
  • Next by thread: Re: Getting the pixels from an NSImage
  • Index(es):
    • Date
    • Thread