GraphicsQualityOptions
Contents
[
Hide
]ImageSaveOptions.GraphicsQualityOptions property
Allows to specify rendering mode and quality for the Graphics object.
public GraphicsQualityOptions GraphicsQualityOptions { get; set; }
Remarks
Use this property to override the Graphics settings provided by Aspose.Words engine by default.
It will take effect only when a document is being saved to an image-like format.
Examples
Shows how to set render quality options while converting documents to image formats.
Document doc = new Document(MyDir + "Rendering.docx");
GraphicsQualityOptions qualityOptions = new GraphicsQualityOptions
{
SmoothingMode = SmoothingMode.AntiAlias,
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
CompositingMode = CompositingMode.SourceOver,
CompositingQuality = CompositingQuality.HighQuality,
InterpolationMode = InterpolationMode.High,
StringFormat = StringFormat.GenericTypographic
};
ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.Jpeg);
saveOptions.GraphicsQualityOptions = qualityOptions;
doc.Save(ArtifactsDir + "ImageSaveOptions.GraphicsQuality.jpg", saveOptions);
See Also
- class GraphicsQualityOptions
- class ImageSaveOptions
- namespace Aspose.Words.Saving
- assembly Aspose.Words