Click or drag to resize

PdfiumFPDFPageObj_SetFlatness Method

Set the precision with which curves 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_SetFlatness(
	IntPtr page_obj,
	float flatness
)

Parameters

page_obj  IntPtr
A handle to a page object. Returned by FPDFPageObj_Create(PageObjectTypes) or FPDFPage_GetObject(IntPtr, Int32)
flatness  Single
A number in the range 0 to 100; a value of 0 specifies the output device’s default flatness tolerance.
Remarks

The value of this parameter gives the maximum error tolerance, measured in output device pixels; smaller numbers give smoother curves at the expense of more computation and memory use.

The flatness tolerance controls the maximum permitted distance in device pixels between the mathematically correct path and an approximation constructed from straight line segments, as shown in Figure 6.6

FIGURE 6.6 Flatness tolerance
See Also