Guide for C#
Core Document Formats
Additional Features

C# Imaging - JPEG 2000 Codec in C#.NET

JPEG 2000 Encoder & Decoder - JPEG 2000 Image Compression & Decompression

Visual C#
Home > .NET Imaging SDK > C# > JPEG 2000 Codec
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

C#.NET JPEG 2000 Image Compression Codec
This C#.NET JPEG 2000 Image Codec Control Add-on, a 100% clean and managed .NET image solution, is designed to help Visual C# programmers encode & decode (compress or decompress) JPEG 2000 image file in .NET developing environment.
Related .net document control helps:
asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
As this C#.NET JPEG 2000 image compression codec control is a standalone and thread-safe image processing SDK, it will be an quite easy task for C# developers to integrate advanced JPEG 2000 image encoding and decoding features into their C#.NET class applications without depending on other third-party JPEG 2000 related software.
JPEG 2000 / .jp2 (a commonly used image file format for JPEG 2000 compressed data) adopts an international image compression standard which is based on a wavelet compression. Compared with other image compression methods, JPEG 2000 is able to achieve a super high compression while maintaining a high image quality. Developed from JPEG compression, JPEG 2000 supports both lossless and lossy compression mode.
Different from other JPEG 2000 image compression codecs on the market, this C#.NET JPEG 2000 image codec SDK can not only allow developers to compress & decompress JPEG 2000 images but also offer them the ability to define the compression ration (from 1 to 100).
This online tutorial page for how to decode & encode JPEG 2000 image file using C#.NET code is divided into following three parts. If you want to see other C#.NET image compression controls, please follow this link to read more about other RasterEdge .NET image SDK supported compression controls.
  • How to integrate this JPEG 2000 image compression & decompression control into C#.NET class application
  • Sample C# code to encode & compress JPEG 2000 image in .NET class project
  • C# demo code to decode & decompress JPEG 2000 image file
Install JPEG 2000 Image Codec in C#.NET
From this section, you will find a detailed guidance on how to use this RasterEdge JPEG 2000 codec for JPEG compression and decompression by Visual C# programming code. Please note that this C#.NET JPEG 2000 image codec control add-on is only suitable for .NET Framework 2.0 and above versions.
  1. Create or set a Visual C# .NET class project using Microsoft Visual Studio 2005 (or greater versions);
  2. Download the trial package of RasterEdge DocImage SDK for .NET where you can find this C#.NET JPEG 2000 image compression codec add-on;
  3. Integrate following dlls of C#.NET JPEG 2000 image decoder and encoder SDK into your C#.NET class application;
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.Jpeg2000.dll
  4. Get the evaluation license of this C#.NET JPEG 2000 image compressing & decompressing SDK and place created "RasterEdgeLicense.txt" at your C# project bin folder where you can find above embedded C#.NET JPEG 2000 image codec dlls;
  5. Call the namespace of RasterEdge JPEG 2000 image compression codec SDK;
  6. Now you can use following sample C# code to decode and encode JPEG 2000 image file in .NET class application.
Encode Image Using C#.NET JPEG 2000 Codec
This C#.NET JPEG 2000 image codec SDK offers easy to use API for users to encode 8-bit grayscale and 24-bit RGB to JPEG 2000 (.JP2) image file. Following demo C# code is used to create a new JPEG 2000 image.
Jp2Eecoder jp2 = new Jp2Eecoder();
RegisteredDecoders.Eecoders.Add(jp2);
Decode Image Using C# .NET JPEG 2000 Codec
The API that this JPEG 2000 image codec SDK has provided can also help C# developers decode and decompress JPEG 2000 image file from local files to 8-bit grayscale, 16-bit grayscale, 48-bit RGB and 24-bit RGB.
Jp2ImageInfo info = (Jp2ImageInfo)RegisteredDecoders.GetImageInfo("myimage.jp2");
Console.WriteLine(info.FileFormat);


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster Edge.com