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:
- 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 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
AntiAliasing | Gets or Sets the AntiAliasing value. |
Bmp | Gets a default BmpImageFormat class. |
DefaultBlackThreshold | Gets or sets the default value of black threshold. |
DefaultColorPalette | Gets or Sets the default color palette. |
DefaultDitheringAlgorithm | Gets or Sets the default dithering algorithm. |
DefaultDitheringPercent | Gets or Sets the default dithering percentage. |
Gif | Gets a default GifImageFormat class. |
Jpeg | Gets a default JpegImageFormat class. |
Png | Gets a default PngImageFormat class. |
TiffWithCcitGroup3 | Gets a default TiffImageFormat class with CCIT Group 3 compression specified. |
TiffWithCcitGroup4 | Gets a default TiffImageFormat class with CCIT Group 4 compression specified. |
TiffWithLzw | Gets 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) |