Class OdgRasterizationOptions
Contents
[
Hide
]OdgRasterizationOptions class
The Odg rasterization options
public class OdgRasterizationOptions : OdRasterizationOptions
Constructors
Name | Description |
---|---|
OdgRasterizationOptions() | The default constructor. |
Properties
Name | Description |
---|---|
BackgroundColor { get; set; } | Gets or sets a background color. |
BorderX { get; set; } | Gets or sets the border X. |
BorderY { get; set; } | Gets or sets the border Y. |
CenterDrawing { get; set; } | Gets or sets a value indicating whether center drawing. |
DrawColor { get; set; } | Gets or sets a foreground color. |
PageHeight { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. |
PageSize { get; set; } | Gets or sets the page size. If one of SizeF dimensions is 0, the source image aspect ratio will be preserved. |
PageWidth { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. |
Positioning { get; set; } | Gets or sets the positioning. |
ReplaceTextMapping { get; set; } | Gets or sets the text replace mapping. |
SmoothingMode { get; set; } | Gets or sets the smoothing mode. |
TextRenderingHint { get; set; } | Gets or sets the text rendering hint. |
Methods
Name | Description |
---|---|
Clone() | Creates a new object that is a shallow copy of the current instance. |
virtual CopyTo(VectorRasterizationOptions) | Copies to. |
Examples
The following example shows how to export a FODG (Flat XML ODF Template) image to PDF format.
[C#]
string dir = "c:\\aspose.imaging\\issues\\net\\3635";
string inputFileName = System.IO.Path.Combine(dir, "VariousObjectsMultiPage.fodg");
string outputFileName = inputFileName + ".pdf";
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(inputFileName))
{
Aspose.Imaging.ImageOptions.OdgRasterizationOptions rasterizationOptions = new Aspose.Imaging.ImageOptions.OdgRasterizationOptions();
rasterizationOptions.BackgroundColor = Aspose.Imaging.Color.White;
rasterizationOptions.PageSize = image.Size;
Aspose.Imaging.ImageOptions.PdfOptions saveOptions = new Aspose.Imaging.ImageOptions.PdfOptions();
saveOptions.VectorRasterizationOptions = rasterizationOptions;
image.Save(outputFileName, saveOptions);
}
See Also
- class OdRasterizationOptions
- namespace Aspose.Imaging.ImageOptions
- assembly Aspose.Imaging