JPEG 2000 Part II (JPX) defines a file architecture rather than a specific, fixed set of data structures that will be found in a file. The ImageGear.Formats.JPEG2K Namespace provides you with the support of the following important JPX features:
- CMYK support. JPX CMYK image is saved such that any other JPX software is able to read the image as CMYK.
- Multipage support. ImageGear JPEG2K namespace allows you to read/write multipage JPX documents with many compositing layers. You also may add new pages to the end of already existing pages in the multipage file.
- Separate codestreams support. Each JPX transparency channel can be separated from the color channels and can be written as single codestream. This feature is very useful, if we have multipage JPX document and want to set one transparency channel for all pages. In this case, it is possible to save this transparency channel as a separate codestream and then add a pointer to this codestream to all pages. This ability allows you to significantly reduce the size of the output multipage JPX document.
- Chroma-key opacity support. This JPX feature allows you to specify the color value of every transparent pixel.
- User controlled reading/writing of JPEG 2000 format metadata (XML and IPR). Non-image information (XML and IPR) does not affect the decoding or visual appearance of the image itself. Also see JPEG 2000 Part II (JPX) Metadata Tags and Non-image Dataset Structure for JPX as well as "XML" and "IPR".
Enabling JPX File Format
To enable JPX file format in your project, add a reference to ImageGear.Formats.Jpeg2k Assembly. Specify this directive:
C# |
Copy Code |
using ImageGear.Formats.JPEG2K; |
and use this API:
C# |
Copy Code |
ImGearFileFormats.Filters.Add( ImGearJPEG2K.CreateJPXFormat()); |
See the JPX section of the File Formats Reference for a list of bit depths and color spaces supported for reading and writing.