Skip to main content

PCX writer support

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
nickarls
Offline
Joined: 2005-11-21

Hi,

I have a need to write PCX file (yes, I know the file format is ancient) but where can I find the writer for it? It doesn't appear to be in the JDK 6/7 and it wasn't in the JAI core. I see a closed JIRA for it.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
forklabs
Offline
Joined: 2006-01-19

Hello nickarls,

You can write your own codec for JAI operators "fileload" and
"filestore". It has been a while since I wrote them but if you look at
internet archives of my 2006 project hdr-codec (on the back burner for
now):

http://www.koders.com/info.aspx?c=ProjectInfo&pid=VVAD92CRNDUY23MD9QS44U...

and

http://www-etud.iro.umontreal.ca/~leonard/Arctic%20Ice/src/java/tools/ca...

I am sure you can hack your way.

While trying to point you some PCX specs I stubled upon:

http://www.informit.com/articles/article.aspx?p=684049&seqNum=2

that seems to have some code for an image-io PCX codec. image-io
allows one to read images with the core JDK libraries. There exists a
project called jai-imagei-io that exposes two operators "imageread"
and "imagewrite" that works through image-io.

Regards,

nickarls
Offline
Joined: 2005-11-21

Hi,

Thanks for your reply, I managed to find the PCX classes in imageio and stripped them down to the bare minimum of the writer + spi + constants + metadata + one method from ImageUtil.