Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libpng.dylib and carbon: do they play well together?



P McIlroy wrote:

>I have an app that currently uses the QuickTime sdk to open png files
>on OSX, but uses .bmp files everywhere else. I would like to make it
>more portable, using libpng.
>
>I see via Spotlight that there is a copy in /Developer/SDKs/......./
>libPng.dylib
>
>Can I use the methods in this, and get rid of the quicktime stuff
>without distributing libpng as part of the app, or do I need to
>continue to use Quicktime? Since I need to use libpng methods anyway,
>it might be simpler to use the same interface on OS X as well.

It looks like this .dylib is internal to ImageIO.framework ("locate
libPNG.dylib"), so you should really treat it as an implementation
detail.

CGImage or ImageIO both have 2-line methods to get a CGImageRef for a
.png file, so if there's a similar API on your other platform(s) then
you could use those vs requiring QuickTime be installed.


-dair
___________________________________________________
mailto:email@hidden       http://www.refnum.com/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.