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:
- 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 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
Dpi150 | Gets a default DpiImageSize class set to 150 DPI. |
Dpi300 | Gets a default DpiImageSize class set to 300 DPI. |
Dpi600 | Gets a default DpiImageSize class set to 600 DPI. |
Dpi72 | Gets a default DpiImageSize class set to 72 DPI. |
Dpi96 | Gets a default DpiImageSize class set to 96 DPI. |
FaxFine | Gets a default DpiImageSize class set to the fine fax DPI. |
FaxStandard | Gets a default DpiImageSize class set to the standard fax DPI. |
FaxSuperfine | Gets a default DpiImageSize class set to the super fine fax DPI. |
HorizontalDpi | Gets or sets the horizontal DPI of an image. |
VerticalDpi | Gets 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) |