TIFF to PNG Converter SDK in C#.NET

How to Convert TIFF to PNG with C# Sample Codes
TIFF to PNG C#.NET converter is a widely used image converting tool. You can convert single or multiple TIFF file to PNG file in a simple and quick way with our friendly and well-designed TIFF converter in C#. Besides image converting functionality, it also supports image resizing, cropping, flipping, scaling and watermarking in C#.NET class. Below are some key features of TIFF to PNG converter programmed with C# codes.
  • Able to be integrated with other image .NET SDK in Visual Studio C# application
  • Using a command line or with a few steps to easily convert TIFF to PNG in C#.NET
  • Provide thumbnail-based preview function for C# users to better view in the interface
  • Capable of processing and manipulating TIFF image before converting with our C# program
  • Support directly saving TIFF file to PNG image format in C# image conversion user interface
TIFF converter SDK in C#.NET allows you to convert TIFF to a wide range of image formats and documents types such as BMP, JPEG, PDF, Word, Text and so on. Please refer to C#.NET TIFF converter SDK to have a general understanding on our TIFF converting control.
Brief Introduction on PNG in C#.NET
Portal Network Graphics is a raster graphics image format abbreviated to PNG. It supports lossless data compression and palette-based images. PNG is created as a replacement for gif image due to its patent and limitation of color space. It allows a variety of transparency options and alpha channels. PNG has become the most used lossless image compression format on the internet. You can use our TIFF to PNG converter control in C#.NET to batch convert TIFF to PNG format with a few seconds.
PNG is compressed in two stages by using some professional C# image encoders. The two stages are pre-compression (filtering) and compression (DEFLATE). Filtering method makes PNG compressed more easily by predicting the value of each pixel based on the precious nearby pixel. The second stage is to compress PNG file with a lossless data compression method known as DEFLATE.
Besides the above mentioned compression solution, Yiigo provides users with three other kinds of advanced compression modes: JPEG2000 codec in C#.NET and JBIG2 codec in C#.NET. Please make sure you have known all their compression features before using the more suitable compression mode for your images.
Converting TIFF to PNG in C#.NET
You can convert TIFF to PNG with two methods. If users have no knowledge of C# programming language, they can directly convert TIFF file with our default user interface. It saves you a lot of time to figure out how to convert TIFF to PNG format. If users have a little knowledge on how to write codes in C# programming language, they can use sample codes to make their own designed TIFF to PNG converter toolkit.

Tutorial on TIFF to PNG C# Converter

With a few simple steps, users can easily convert TIFF to PNG in C#.NET. First, please load the TIFF file you are going to convert. The loaded TIFF file can be viewed in the thumbnail preview area. Second, choose the target image format, or you can directly save TIFF file to gif format. Third, process images if you want to before converting. Fourth, choose a folder you want to save gif file and then click the "convert" button to start the conversion process.

C# Sample Codes to Convert TIFF to PNG

Below are some C# sample codes you can use to convert TIFF to PNG. Please use them when you are creating a C# TIFF converting application.
private void button1_Click(object sender, EventArgs e)
{

string fileName = FolderName + "Sample.tif";

YGDocument doc = YGFile.OpenDocumentFile(fileName, new TIFDecoder());//use TIFDecoder open a tif file

int pageCount = doc.GetPageCount();//get tif's page count

for (int pgIdx = 0; pgIdx < pageCount; pgIdx++)
{
BasePage aPage = doc.GetPage(pgIdx);//get page from YGDocument


try
{
YGImage img = (YGImage)aPage.ToImage();//translate page to image
YGFile.SaveImageFile(img, FolderName + "output" + pgIdx + ".png");//save image
}
catch (Exception)
{
Debug.WriteLine("Fail to display page " + pgIdx);
}
}

}
Yiigo.Image for C#
Yiigo.Image Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner