Click or drag to resize

PdfPageObjectSmoothness Property

Gets or sets the precision with which color gradients are to be rendered on the output device.

Namespace:  Patagames.Pdf.Net
Assemblies:   Patagames.Pdf.Xamarin.iOS (in Patagames.Pdf.Xamarin.iOS.dll) Version: 4.52.2704
  Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.52.2704
public float Smoothness { get; set; }

Property Value

Type: Single
A number in the range 0.0 to 1.0.

The value of this parameter gives the maximum error tolerance, expressed as a fraction of the range of each color component; smaller numbers give smoother color transitions at the expense of more computation and memory use.

The smoothness tolerance controls the quality of smooth shading (type 2 patterns and the sh operator) and thus indirectly controls the rendering performance. Smoothness is the allowable color error between a shading approximated by piecewise linear interpolation and the true value of a (possibly nonlinear) shading function. The error is measured for each color component, and the maximum error is used.The allowable error(or tolerance) is expressed as a fraction of the range of the color component, from 0.0 to 1.0. Thus, a smoothness tolerance of 0.1 represents a tolerance of 10 percent in each color component.

See Also