• 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: [loading 16-bit png,psd|loading tiff from stdout]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [loading 16-bit png,psd|loading tiff from stdout]


  • Subject: Re: [loading 16-bit png,psd|loading tiff from stdout]
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 29 Jan 2003 13:51:58 -0800

On Tuesday, January 28, 2003, at 07:39 PM, Josh Anon wrote:

Hi John,
The image shows up when I load it into an image view in IB. With a tiff, the issue is that if I try to init an image rep from the data, the rep returns nil, and if I try to init an image, the image has no reps. No errors, it just doesn't work. The rest of the code just grabs the rep from the image (loading into an image and not a rep was an attempt to fix this problem) and sets it within the object. Then, the app asks for the NSBitmapImageRep from the plugin, and it'll ask for a tif or such representation from there which gets written to > disk.

Hmm, interesting--if NSImage uses Quicktime...very nice! Is this documented anywhere? Does this work for any additional Quicktime plugins that aren't standard, e.g. perhaps an OpenEXR one?

Any thoughts on why 16-bit png/psd are becoming 8-bit? Is NSBitmapImageRep not letting Quicktime do it's thing (or is Quicktime doing its thing and its thing is wrong)? Did a bit of playing and this seems to happen if you load from a file, too.

Well, if the image shows up when you drop it on an NSImageView, then NSImage is able to load and display it. NSImageView isn't doing anything tricky there, it just takes what's on the dragging pasteboard.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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: [loading 16-bit png,psd|loading tiff from stdout]
      • From: Josh Anon <email@hidden>
References: 
 >Re: [loading 16-bit png,psd|loading tiff from stdout] (From: Josh Anon <email@hidden>)

  • Prev by Date: Re: Sharing an NSTextView
  • Next by Date: Re: [loading 16-bit png,psd|loading tiff from stdout]
  • Previous by thread: Re: [loading 16-bit png,psd|loading tiff from stdout]
  • Next by thread: Re: [loading 16-bit png,psd|loading tiff from stdout]
  • Index(es):
    • Date
    • Thread