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?




On 23.03.2007, at 21:13, 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.

From personal experience, I can say that FreeImage works nicely for cross-platform code if you need more than just png. Since it's based on libpng, I don't think there's anything that would hold you back from using pure libpng in a Carbon app. I would not necessarily rely on the presence of libPng.dylib inside the ImageIO framework, however - things like that could change in future OS X versions. You'll be on the safe side if you link a static libpng in your app or include a dylib in your application bundle.


As others have pointed out, ImageIO is a non-portable alternative you can consider if you target 10.4+.

Stefan
_______________________________________________
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
References: 
 >libpng.dylib and carbon: do they play well together? (From: P McIlroy <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.