• 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
NSCacheImageRep woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCacheImageRep woes


  • Subject: NSCacheImageRep woes
  • From: Nicholas Francis <email@hidden>
  • Date: Wed, 14 Jan 2004 21:18:25 +0100

Hi guys - I have a small problem getting to my image data.

I load a bitmap image (tiff) using the +[NSImage imageNamed:] method, and want to access the pixel data....

However, when the user runs in 16bpp on the desktop, when looking through the bitmap's representations, I only get one NSCachedImageRep. FWIW, here is the its -description:

NSCachedImageRep 0x1980df0 Size={12, 12} ColorSpace=NSCalibratedRGBColorSpace BPS=4 Pixels=12x12 Alpha=NO

What gives? I would expect to also have the original NSBitmapImageRep that the cache is generated from. I tried looking through NSImage documentation, but can find no function I have to call to make it keep the data around.

Nicholas Francis
------------------------------------------------------------------------ -------
Scheduling fascist - Over The Edge Entertainments
_______________________________________________
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: NSCacheImageRep woes
      • From: Andrew Platzer <email@hidden>
  • Prev by Date: NSMovieView hidden controller mystery
  • Next by Date: Re: HTTP POST
  • Previous by thread: NSMovieView hidden controller mystery
  • Next by thread: Re: NSCacheImageRep woes
  • Index(es):
    • Date
    • Thread