To enable JP2 file format in your project, add a reference to ImageGear20.Formats.Jpeg2000 Assembly. Specify this directive:
| C# | Copy Code |
|---|---|
using ImageGear.Formats.Jpeg2000; | |
and use this API:
| C# | Copy Code |
|---|---|
ImGearFileFormats.Filters.Add( ImGearJPEG2K.CreateJP2Format()); | |
See the JPEG2000 section of the ImageGear Supported File Formats Reference for a list of bit depths and colorspaces supported for reading and writing.