OpenJpegDotNet
OpenJpeg wrapper written in C++ and C# for Windows, MacOS, Linux, iOS and Android
OpenJpegDotNet
Package | OS | x86 | x64 | ARM | ARM64 | Nuget |
---|---|---|---|---|---|---|
OpenJpegDotNet | Windows | ✓ | ✓ | - | - | |
Linux | - | ✓ | ✓ | ✓ | ||
OSX | - | ✓ | - | - | ||
OpenJpegDotNet (Xamarin) | UWP | ✓ | ✓ | ✓ | ✓ | |
Android | ✓ | ✓ | ✓ | ✓ | ||
iOS | - | ✓ | - | ✓ |
How to use?
OpenJpegDotNet provides OpenJpeg APIs and Auxiliary APIs. Auxiliary APIs allows developers to decode/encode jpeg 2000 data easily.
⚠️ Warning
Auxiliary APIs only wraps native OpenJpeg APIs. Auxiliary APIs may be changed in the future.
Read
byte[] image = System.IO.File.ReadAllBytes("test.j2k");
using OpenJpegDotNet.IO.Reader reader = new OpenJpegDotNet.IO.Reader(image);
bool result = reader.ReadHeader();
System.Drawing.Bitmap bitmap = reader.ReadData();
Dependencies Libraries and Products
OpenJpeg
License: BSD 2-clause "Simplified" License
Author: Université de Louvain
Principal Use: An open-source JPEG 2000 codec written in C language. Main goal of OpenJpegDotNet is what wraps OpenJpeg by C#.