![]() | PdfiumFPDFPage |
public static void FPDFPageObj_SetSmoothness( IntPtr page_obj, float smoothness )
Public Shared Sub FPDFPageObj_SetSmoothness ( page_obj As IntPtr, smoothness As Single )
public: static void FPDFPageObj_SetSmoothness( IntPtr page_obj, float smoothness )
static member FPDFPageObj_SetSmoothness : page_obj : IntPtr * smoothness : float32 -> unit
public static void FPDFPageObj_SetSmoothness( IntPtr page_obj, float smoothness )
Patagames.Pdf.Pdfium.FPDFPageObj_SetSmoothness = function(page_obj, smoothness);
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.