FROM : John C. Randolph
DATE : Wed Jan 29 22:51:58 2003
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_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Wed Jan 29 22:51:58 2003
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_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Josh Anon | Jan 28, 20:31 | |
| nibs@mac.com | Jan 28, 22:19 | |
| John C. Randolph | Jan 29, 01:34 | |
| Josh Anon | Jan 29, 04:39 | |
| John C. Randolph | Jan 29, 22:51 | |
| Josh Anon | Jan 29, 23:04 |






Cocoa mail archive

