Guide for C#
Core Document Formats
Setting Rendering Option
Additional Features

C# TIFF - How to Set Rendering Options

C# Guide for How to Set TIFF Rendering Option Using Different APIs

Visual C#
Home > .NET Imaging SDK > C# > Set TIFF Rendering Options

"This online guide content is Out Dated!
    Please get the latest XDoc.Tiff C# Developer Guide here.

RasterEdge DocImage SDK for .NET includes some assemblies that allow C# programmers to implement TIFF rendering and converting in Visual C#.NET projects. By directly integrating .NET Basic Imaging DLL and .NET TIFF Add-on DLL into your project, all well-designed TIFF file conversion features can be used through mature APIs. For specific document and image conversion, like TIFF to PDF and TIFF to SVG, the PDF and SVG manipulation DLLs need be integrated as well.
Related .net document control helps: pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm... edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C# view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
RasterEdge allows you to control fully on C#.NET TIFF rendering process by setting some rendering options. how to make pdf password protected in c#, convert pdf to jpg c# codeproject, read pdf file itextsharp, page break in pdf using itextsharp c#, itextsharp pdf to image, get coordinates of text in pdf c#. In details, users can specify the size/resolution of the image rendered, a region of the page to render and the target size of rendered image. Moreover, you can customzie TIFF rendering process in batch or page-by-page mode.
How to Set TIFF Rendering Options with APIs
Situation 1: Before converting any TIFF pages, you might use TIFFPage.GetWidth() and TIFFPage.GetHeight() to get width and height of the original page in pixel.
Situation 2: If you already know your target image dimension and the size is not too big, you may use the following C#.NET APIs. And corresponding sample code is provided below.
REImage ConvertToImage(Size targetSize);
Bitmap GetBitmap(float zoomValue);
// load TIFF document
TIFFDocument doc = new TIFFDocument(@"c:\sample.tif");

// compute zoom out factor
// get the first page as sample page
TIFFPage page = (TIFFPage)doc.GetPage(0);

// get the orignial height and width of this page in pixel
float originalWidth = page.GetWidth();
float originalHeight = page.GetHeight();

// ajdusted with a fixed ratio and with width set to a target width
page.GetBitmap(1000 / originalWidth);
Situation 3: For large TIFF image, you can convert it to common raster images types, like png, jpeg, gif, bmp, to view in C# program. See sample code below. Also, RasterEdge TIFF File Converter SDK also enables users to convert large TIFF image to SVG image, or convert TIFF file directly to PDF document in C#.NET.
// load TIFF document
TIFFDocument doc = new TIFFDocument(@"c:\sample.tif");

// compute zoom out factor
// get the first page as sample page
TIFFPage page = (TIFFPage)doc.GetPage(0);

page.ConvertToImage(ImageType.PNG, @"c\1.png");
Situation 4: If you want to convert whole TIFF document to images in Visual C# at one time, you may use the following API in TIFFDocument.
void ConvertToImages(ImageType target, String directory, String fileName);

Recommend this to Google+ 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-2024 Raster