How to C#: Tiff
Using Tiff SDK for C#.NET
Convert Tiff to Jpeg Images
Convert Tiff to Jpeg Images
  |  
Home ›› XDoc.Tiff ›› C# Tiff: Tiff to Images

C# TIFF - Convert TIFF to Raster Images in C#.NET


C# Demo to Convert and Render TIFF to JPEG/Png/Bmp in Visual C#.NET Project




C#.NET Image: TIFF to Raster Images Overview



Based on the core technology of RasterEdge .NET document imaging SDK, .NET TIFF Converting and Rendering control package is powerful enough for fulfilling users' needs to convert single or multi-page TIFF file to raster image with its mature and robust TIFF imaging converting APIs in C#.NET class. RasterEdge .NET TIFF Converting Component SDK can be applied to transform and render TIFF to JPEG, BMP, and PNG image file formats in C#.NET, as well as in VB.NET, ASP.NET & .NET WinForms projects.


Related .net document control helps:
asp.net redact pdf control: ASP.NET Redact PDF Document Control: redact, remove PDF text, images in web browser using C# ASP.NET
asp.net mvc file viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net azure file viewer: ASP.NET Azure Document Viewer: view, annotate files online using ASP.NET Cloud Service
asp.net dnn file viewer: DNN Document Viewer Control: view, annotate, redact, convert documents in dotnetnuke ASP.NET
asp.net tiff file viewer: ASP.NET Tiff Document Viewer: view, annotate Tiff files in HTML using C# Control
asp.net office document viewer: ASP.NET Office Word Document Viewer: view MS Office Word files online using C# in ASP.NET web applications
asp.net file viewer: EdgeDoc ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online using ASP.NET Web Con...


From this C# tutorial page, users are supposed to know:


How to convert Tiff image to Jpeg image in C#


How to convert Tiff image to Png image in C#


How to convert Tiff image to Bmp image in C#





C# Project DLLs: Convert TIFF to Raster Images



In order to start the following demo codes, the steps will be necessary as follows:


Add references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XDoc.Processing.dll


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.TIFF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.TIFF;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


If using x86, the platform target should be x86.




C#.NET Image: TIFF to JPEG Demo



C# class code for conversion from Tiff image to Jpeg raster image.




// Load your Tiff image file.
TIFFDocument doc = new TIFFDocument(@"demo1.tif");
if (null == doc)
        throw new Exception("Fail to load TIFF Document");

// Convert Tiff image file to Jpeg image.
doc.ConvertToImages(ImageType.JPEG, @"", "Page");





C#.NET Image: TIFF to PNG Demo



Free C# programming demo for converting Tiff to Png image.




// Load your Tiff image file.
TIFFDocument doc = new TIFFDocument(@"demo1.tif");
if (null == doc)
        throw new Exception("Fail to load TIFF Document");

// Convert Tiff image file to Png image.
doc.ConvertToImages(ImageType.PNG, @"", "Page");





C#.NET Image: TIFF to BMP Demo



Learn how to convert Tiff file to Bmp image using C# demo.




// Load your Tiff image file.
TIFFDocument doc = new TIFFDocument(@"demo1.tif");
if (null == doc)
        throw new Exception("Fail to load TIFF Document");

// Convert Tiff image file to Bmp image.
doc.ConvertToImages(ImageType.BMP, @"", "Page");




public override void ConvertToImages(ImageType target, string directory, string fileName)

Description:
Convert all TIFF file pages to image with specified format and save them in the given folder.

Parameters:
public override void ConvertToImages(ImageType targetType, Stream[] streams)

Description:
Convert all TIFF file pages to image with specified format and save them in the stream

Parameters:
public override void ConvertToImages(ImageType targetType, float zoomValue, Stream[] streams)

Description:
Convert all TIFF file pages to target format images with specified zoom value and save them to streams,

Parameters:
public override void ConvertToImages(ImageType targetType, int resolution, Stream[] streams)

Description:
Convert all TIFF file pages to target format images with specified resolution and save them to streams.

Parameters:
public override void ConvertToImages(ImageType targetType, float zoomValue, string directory, string fileName)

Description:
Convert all TIFF file pages to target format images with specified zoom value and save them on the given folder.

Parameters:
public override void ConvertToImages(ImageType targetType, int resolution, string directory, string fileName)

Description:
Convert all TIFF file pages to target format images with specified resolution and save them on the given folder.

Parameters:
public override void ConvertToImages(ImageType targetType, ImageOutputOption option, Stream[] streams)

Description:
Convert all TIFF file pages to target format image with optional settings and save them to streams.

Parameters:
public override void ConvertToImages(ImageType targetType, ImageOutputOption option, string directory, string fileName)

Description:
Convert all TIFF pages to target format images with optional settings and save them to the given folder.

Parameters:
ImageOutputOption: