Rich functions are provided by RasterEdge .NET Imaging SDK and JPEG 2000 Codec add-on for decoding and encoding JPEG 2000 images using the Microsoft .NET Framework.
Reade and decode any page from JPEG 2000 image- Support single and multipage JPEG 2000 format
- Detect, compress and decompress JPEG 2000 image form stream
- Support JPEG 2000 compression in PDF documents
- Read a specified region from an existing JPEG 2000 image stream
- Provide lossy compression and lossless compression modes
- More image JPEG 2000 functions
JPEG 2000
Here is a detailed VB.NET sample for encoding and decoding images with RasterEdge .NET Imaging SDK and JPEG 2000 Codec. (For C#.NET developers, please go to
JPEG 2000 Codec for C#.NET. Want to view Image and document in Winforms or Web applications, please go to
JPEG 2000 Codec in Winforms and
Web Document Image JPEG 2000 Codec.)
- Start Visual Studio .NET (2005 or later version);
- Begin a new project with programming language - VB.NET;
- Add RasterEdge.DotNetImaging.dll & RasterEdge.DotNetImaging.Jpeg2000.dll to your VB.NET applications;
- Add the appropriate Imports directive:
Imports System.IO
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.Jpeg2000
Create an JPEG 2000
Create JPEG 2000 images with following VB.NET codes:
Dim jp2 As Jp2Decoder = New Jp2Decoder()
RegisteredDecoders.Decoders.Add(jp2)
Getting Image Information
If you want to know the image information, copy following VB.NET codes:
Dim info As Jp2ImageInfo = CType(RegisteredDecoders.GetImageInfo("myimage.jp2"), _
Jp2ImageInfo)
Console.WriteLine(info.FileFormat) Reset JPEG 2000 Decoder
Developer may reset JPEG 2000 decoder with following VB.NET codes:
Dim jpeg As JpegDecoder =
CType(RegisteredDecoders.GetDecoderFromType(typeof(JpegDecoder)), JpegDecoder);
jpeg.ScaleFactor = JpegScaleFactor.Half
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!
Want to install Imaging SDK in Winforms or Web applications, please go to
Use Imaging SDK in Winforms and
Web Document Image Viewer.