xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Loïc Minier <l...@via.ecp.fr>
Subject Re: how to extract palette information
Date Tue, 11 Mar 2003 11:57:32 GMT
Nishant <nishantg@yahoo.com> - Tue, Mar 11, 2003:

> I was wondering if JAI can help me?

   dunnno :(

> Is there anything like palette defined for an entire png
> image type? because the palette sounds like for a pixel for
> me!

   ?


> one person told me that he extracts the palette information
> for gif using this code... will this work also for png
> format.

   Ouch, this is brute binary file reading, I strongly suggest you use a
 lib that does the job for you!

   Look at libpng's api and examples at
 <http://www.libpng.org/pub/png/libpng-manual.html>.


    Regards,

-- 
Loïc Minier <lool@via.ecp.fr>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message