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. |
BufferSizeHint { get; set; } | Gets or sets the buffer size hint which is defined max allowed size for all internal buffers. |
CenterDrawing { get; set; } | Gets or sets a value indicating whether center drawing. |
Disposed { get; } | Gets a value indicating whether this instance is disposed. |
DrawColor { get; set; } | Gets or sets a foreground color. |
FullFrame { get; set; } | Gets or sets a value indicating whether [full frame]. |
KeepMetadata { get; set; } | Gets a value whether to keep original image metadata on export. |
MultiPageOptions { get; set; } | The multipage options |
PageHeight { get; set; } | Gets or sets the page height. |
PageSize { get; set; } | Gets or sets the page size. |
PageWidth { get; set; } | Gets or sets the page width. |
virtual Palette { get; set; } | Gets or sets the color palette. |
Positioning { get; set; } | Gets or sets the positioning. |
ProgressEventHandler { get; set; } | Gets or sets the progress event handler. |
ReplaceTextMapping { get; set; } | Gets or sets the text replace mapping. |
virtual ResolutionSettings { get; set; } | Gets or sets the resolution settings. |
SmoothingMode { get; set; } | Gets or sets the smoothing mode. |
Source { get; set; } | Gets or sets the source to create image in. |
TextRenderingHint { get; set; } | Gets or sets the text rendering hint. |
VectorRasterizationOptions { get; set; } | Gets or sets the vector rasterization options. |
virtual XmpData { get; set; } | Gets or sets the XMP metadata container. |
Methods
Name | Description |
---|---|
virtual Clone() | Clones this instance. |
CopyTo(VectorRasterizationOptions) | Copies to. |
Dispose() | Disposes the current instance. |
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