ImageAlignment Enum
Image Alignment
public enum ImageAlignment
Public Enum ImageAlignment
Inheritance: ObjectValueTypeEnumImageAlignment
Fields
ImageAlignment.Bottom | 2 | Bottom Alignment for Image |
ImageAlignment.BottomLeft | 8 | BottomLeft Alignment for Image |
ImageAlignment.BottomRight | 7 | BottomRight Alignment for Image |
ImageAlignment.Center | 4 | Center Alignment for Image |
ImageAlignment.Left | 1 | Left Alignment for Image |
ImageAlignment.Right | 3 | Right Alignment for Image |
ImageAlignment.Top | 0 | Top Alignment for Image |
ImageAlignment.TopLeft | 5 | TopLeft Alignment for Image |
ImageAlignment.TopRight | 6 | TopRight Alignment for Image |
Licensing Info
This enum is a DynamicPDF Converter 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 Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use ImageAlignment property.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ImageConversionOptions.
Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(True)
conversionOptions.ImageAlignment=ImageAlignment.Top
' Create new instance of Converter by providing suitable parameters.
Dim imageConverter As ImageConverter = New ImageConverter("C:\MyDocument.jpg",conversionOptions)
' Call Convert method to start conversion
imageConverter.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of ImageConversionOptions.
ImageConversionOptions conversionOptions = new ImageConversionOptions(true);
conversionOptions.ImageAlignment=ImageAlignment.Top;
// Create new instance of Converter by providing suitable parameters.
ImageConverter imageConverter = new ImageConverter(@"C:\MyDocument.jpg", conversionOptions);
//Call Convert method to start conversion
imageConverter.Convert(@"C:\MyOutput.pdf");
}
}