Marek Mauder has sent word about his OpenSource project called Vampyre Imaging Library
<blockquote>

Vampyre Imaging Library is native ObjectPascal image loading, saving and manipulation library. It is available for several platforms and does not require any third party dynamic libraries or other compiled binaries. Main development language is ObjectPascal (Delphi, Kylix and Free Pascal compilers are supported) and there are interfaces to the library (compiled into dll) for C/C++ and others will be added in future. Supported OS platforms are Windows, x86 Linux and DOS, with possible future ports to other systems.

</blockquote>
It seems to support quite a few image formats, so
check it out if your don't fancy writing your own library.