TiffMonochromeCompressionType Enum
Represents compression formats supported by TIFF monochrome format.
public enum TiffMonochromeCompressionType
Public Enum TiffMonochromeCompressionType
Inheritance: ObjectValueTypeEnumTiffMonochromeCompressionType
Fields
TiffMonochromeCompressionType.CcitGroup3 | 0 | Compression of type CCIT Group3. |
TiffMonochromeCompressionType.CcitGroup4 | 1 | Compression of type CCIT Group4. |
Licensing Info
This enum is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Rasterizer selected.
- A DynamicPDF Rasterizer for .NET v4.X Developer license.
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);
}
}