XRendering AntiAliasImages Property. Whether to anti-alias images. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Value Read Only Description
[C#] bool

[Visual Basic]
Boolean
true No Whether to anti-alias images.

 

   

Notes
 

Determines whether image transformations will be interpolated.

This feature is most useful when the original embedded image resolution is greater than the output resolution. When this property is set to true interpolation is used to scale images thus increasing output quality.

Whether the edges of images are anti-aliased is determined by the AntiAliasPolygons property.

 

   

Example
 

The following example shows the effect that this parameter has on PDF rendering.

[C#]
Doc theDoc = new Doc();
theDoc.Read(Server.MapPath("../mypics/HyperX.pdf"));
theDoc.Rect.Inset(200, 200);
// Render document with AntiAliasImages = true (default)
theDoc.Rendering.Save(Server.MapPath("RenderingAntiAliasImagesTrue.png"));
// Render document with AntiAliasImages = false
theDoc.Rendering.AntiAliasImages = false;
// Save the image
theDoc.Rendering.Save(Server.MapPath("RenderingAntiAliasImagesFalse.png"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.Read(Server.MapPath("../mypics/HyperX.pdf"))
theDoc.Rect.Inset(200, 200)
' Render document with AntiAliasImages = true (default)
theDoc.Rendering.Save(Server.MapPath("RenderingAntiAliasImagesTrue.png"))
' Render document with AntiAliasImages = false
theDoc.Rendering.AntiAliasImages = False
' Save the image
theDoc.Rendering.Save(Server.MapPath("RenderingAntiAliasImagesFalse.png"))
theDoc.Clear()


RenderingAntiAliasImagesTrue.png


RenderingAntiAliasImagesFalse.png