ImageSize

Base class which represents an image size.

public abstract class ImageSize
Public MustInherit Class ImageSize

Inheritance: ObjectImageSize

Derived: DpiImageSize, FixedImageSize, MaxImageSize, PercentageImageSize

Licensing Info

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

Examples

This This example demonstrates the usage of ImageSize class.

Imports System
Imports ceTe.DynamicPDF.Rasterizer

Module MyModule

   Sub Main()

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

       ' Save the image with 72 dots per inch vertical and horizontal resolution.
       rasterizer.Draw("Output.gif", ImageFormat.Gif, ImageSize.Dpi72)

   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");

       // Save the image with 72 dots per inch vertical and horizontal resolution.
       rasterizer.Draw("Output.gif", ImageFormat.Gif, ImageSize.Dpi72);
   }

}

Remarks

ImageSize's derived classes are: DpiImageSize , FixedImageSize , MaxImageSize and PercentageImageSize . See the Output Image Size topic for more on Image Sizes.

Properties

Dpi150Gets a default DpiImageSize class set to 150 DPI.
Dpi300Gets a default DpiImageSize class set to 300 DPI.
Dpi600Gets a default DpiImageSize class set to 600 DPI.
Dpi72Gets a default DpiImageSize class set to 72 DPI.
Dpi96Gets a default DpiImageSize class set to 96 DPI.
FaxFineGets a default DpiImageSize class set to the fine fax DPI.
FaxStandardGets a default DpiImageSize class set to the standard fax DPI.
FaxSuperfineGets a default DpiImageSize class set to the super fine fax DPI.
HorizontalDpiGets or sets the horizontal DPI of an image.
VerticalDpiGets or sets the vertical DPI of an image.

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