ImageFormat

Base class that represents an image format.

public abstract class ImageFormat
Public MustInherit Class ImageFormat

Inheritance: ObjectImageFormat

Derived: BmpImageFormat, GifImageFormat, JpegImageFormat, PngImageFormat, TiffImageFormat

Licensing Info

This class 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 Gif image using ImageFormat class.

Imports System
Imports ceTe.DynamicPDF.Rasterizer

Module MyModule

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

       'Set the size.
       Dim fixedImageSize As New FixedImageSize(595, 841)

       'Save the image.
       rasterizer.Draw("Output.Gif", ImageFormat.Gif, 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");

       //Set the size.
       FixedImageSize fixedImageSize = new FixedImageSize(595, 841);

       //Save the image.
       rasterizer.Draw("Output.Gif", ImageFormat.Gif, fixedImageSize);
   }

}

Remarks

ImageFormat's derived classes are: BmpImageFormat , GifImageFormat , JpegImageFormat , PngImageFormat and TiffImageFormat . See the Output Image Format topic for more on Image Formats.

Properties

AntiAliasingGets or Sets the AntiAliasing value.
BmpGets a default BmpImageFormat class.
DefaultBlackThresholdGets or sets the default value of black threshold.
DefaultColorPaletteGets or Sets the default color palette.
DefaultDitheringAlgorithmGets or Sets the default dithering algorithm.
DefaultDitheringPercentGets or Sets the default dithering percentage.
GifGets a default GifImageFormat class.
JpegGets a default JpegImageFormat class.
PngGets a default PngImageFormat class.
TiffWithCcitGroup3Gets a default TiffImageFormat class with CCIT Group 3 compression specified.
TiffWithCcitGroup4Gets a default TiffImageFormat class with CCIT Group 4 compression specified.
TiffWithLzwGets a default TiffImageFormat class with JPEG compression specified.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.Rasterizer

In this topic