ImageGear for .NET User Guide > Using ImageGear for .NET > Using ImageGear.Formats.JPEG2K Namespace > JPEG 2000 Standard Part I (JP2, J2K, JPC) > JP2 File Format |
To enable JP2 file format in your project, add a reference to ImageGear21.Formats.Jpeg2k Assembly. Specify this directive:
C# |
Copy Code |
---|---|
using ImageGear.Formats.JPEG2K; |
and use this API:
C# |
Copy Code |
---|---|
ImGearFileFormats.Filters.Add( ImGearJPEG2K.CreateJP2Format()); |
See the JPEG 2000 section of the ImageGear Supported File Formats Reference for a list of bit depths and color spaces supported for reading and writing.