com.aspose.words

Class GraphicsQualityOptions

  • java.lang.Object
    • com.aspose.words.GraphicsQualityOptions
public class GraphicsQualityOptions 
extends java.lang.Object

Allows to specify additional java.awt.RenderingHints.

Example:

Shows how to set render quality options.
Document doc = new Document(getMyDir() + "SaveOptions.MyraidPro.docx");

GraphicsQualityOptions qualityOptions = new GraphicsQualityOptions();
qualityOptions.getRenderingHints().put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
qualityOptions.getRenderingHints().put(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);

ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.JPEG);
saveOptions.setGraphicsQualityOptions(qualityOptions);

doc.save(getMyDir() + "\\Artifacts\\SaveOptions.QualityOptions.jpeg", saveOptions);

Constructor Summary
 
Method Summary
java.awt.RenderingHintsgetRenderingHints()
Gets current java.awt.RenderingHints to view or to add new hints.
voidsetRenderingHints(java.awt.RenderingHints renderingHints)
Overwrites current java.awt.RenderingHints.
 

    • Constructor Detail

      • GraphicsQualityOptions

        public GraphicsQualityOptions()
    • Method Detail

      • getRenderingHints

        public java.awt.RenderingHints getRenderingHints()
        Gets current java.awt.RenderingHints to view or to add new hints.
      • setRenderingHints

        public void setRenderingHints(java.awt.RenderingHints renderingHints)
        Overwrites current java.awt.RenderingHints.