Click or drag to resize

PdfiumFPDFPageObj_SetSmoothness Method

Set the precision with which color gradients are to be rendered on the output device.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static void FPDFPageObj_SetSmoothness(
	IntPtr page_obj,
	float smoothness
)

Parameters

page_obj  IntPtr
A handle to a page object. Returned by FPDFPageObj_Create(PageObjectTypes) or FPDFPage_GetObject(IntPtr, Int32)
smoothness  Single
A number in the range 0.0 to 1.0;
Remarks

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