UseHighQualityRendering

SaveOptions.UseHighQualityRendering property

Ottiene o imposta un valore che determina se utilizzare o meno algoritmi di rendering di alta qualità (ovvero lenti).

public bool UseHighQualityRendering { get; set; }

Osservazioni

Il valore predefinito èfalso .

Questa proprietà viene utilizzata quando il documento viene esportato nei formati immagine: Tiff ,Png ,Bmp , Jpeg ,Emf.

Esempi

Mostra come migliorare la qualità di un documento sottoposto a rendering con SaveOptions.

Document doc = new Document(MyDir + "Rendering.docx");
DocumentBuilder builder = new DocumentBuilder(doc);

builder.Font.Size = 60;
builder.Writeln("Some text.");

SaveOptions options = new ImageSaveOptions(SaveFormat.Jpeg);
doc.Save(ArtifactsDir + "Document.ImageSaveOptions.Default.jpg", options);

options.UseAntiAliasing = true;
options.UseHighQualityRendering = true;

doc.Save(ArtifactsDir + "Document.ImageSaveOptions.HighQuality.jpg", options);

Guarda anche