Convert RasterImage to JPEG2000
Sample Code (convert single frame image to JPEG2000):
ConvertHandler.Convert("input.jpeg", @"output.jp2");
Sample Code (convert multi-frame image to JPEG2000):
RasterImage img = new RasterImage("input.tiff");
img.Save(@"output.jp2");
When you convert image to JPEG2000 image file using XImage.Raster C# Imaging library, you can customize and apply the following JPEG2000 image options
- SaveToGray if save the jp2 file to gray scale
- PSNR set the Peak Signal to Noise Ratio(DB)
- CompressRate set jp2 file's compression rate
- ProgressOrder set jp2 file's progress order
- TileWidth set jp2 file's tile width
- TileHeigth set jp2 file's tile height
- Lossless if save jp2 file in lossless format