TiffMonochromeCompressionType Enum

Represents compression formats supported by TIFF monochrome format.

public enum TiffMonochromeCompressionType
Public Enum TiffMonochromeCompressionType

Inheritance: ObjectValueTypeEnumTiffMonochromeCompressionType

Fields

TiffMonochromeCompressionType.CcitGroup30Compression of type CCIT Group3.
TiffMonochromeCompressionType.CcitGroup41Compression of type CCIT Group4.

Licensing Info

This enum is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Examples

This example demonstrates how to rasterize a PDF document to TIFF Monochrome image with CcitGroup4 Compression.

Imports System
Imports ceTe.DynamicPDF.Rasterizer

Module MyModule


   Sub Main()

       ' Create a PdfRasterizer object.
       Dim rasterizer As New PdfRasterizer("InputPdfFile.pdf")

       ' Create a FixedImageSize object with required width and height.
       Dim fixedImageSize As New FixedImageSize(595, 841)

       'Create a TiffMonochromeColorFormat object with CcitGroup3 compression. 
       Dim oTiffColorFormat As TiffColorFormat = New TiffMonochromeColorFormat(TiffMonochromeCompressionType.CcitGroup4)

       'Create a TiffImageFormat object with monocrome color.
       Dim oTiffImageFormat As New TiffImageFormat(oTiffColorFormat)

       ' Save the image.
       rasterizer.Draw("Output.tif", oTiffImageFormat, fixedImageSize)



   End Sub

End Module
using System;
using ceTe.DynamicPDF.Rasterizer;

class MyClass
{
   static void Main(string[] args)
   {
       // Create a PdfRasterizer object.
       PdfRasterizer rasterizer = new PdfRasterizer("InputPdfFile.pdf");

       // Create a FixedImageSize object with required width and height.
       FixedImageSize fixedImageSize = new FixedImageSize(595, 841);

       //Create a TiffMonochromeColorFormat object with CcitGroup3 compression. 
       TiffColorFormat oTiffColorFormat = new TiffMonochromeColorFormat(TiffMonochromeCompressionType.CcitGroup4);

       //Create a TiffImageFormat object with monochrome color.
       TiffImageFormat oTiffImageFormat = new TiffImageFormat(oTiffColorFormat);

       // Save the image.
       rasterizer.Draw("Output.tif", oTiffImageFormat, fixedImageSize);
   }

}

See Also

ceTe.DynamicPDF.Rasterizer

In this topic