 | PdfiumFPDFShadingPattern_SetAntiAlias Method |
Set a flag indicating whether to filter the shading function to prevent aliasing artifacts.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static bool FPDFShadingPattern_SetAntiAlias(
IntPtr shadding_pattern,
bool bAntiAlias
)
Public Shared Function FPDFShadingPattern_SetAntiAlias (
shadding_pattern As IntPtr,
bAntiAlias As Boolean
) As Boolean
public:
static bool FPDFShadingPattern_SetAntiAlias(
IntPtr shadding_pattern,
bool bAntiAlias
)
static member FPDFShadingPattern_SetAntiAlias :
shadding_pattern : IntPtr *
bAntiAlias : bool -> bool
public static boolean FPDFShadingPattern_SetAntiAlias(
IntPtr shadding_pattern,
boolean bAntiAlias
)
Patagames.Pdf.Pdfium.FPDFShadingPattern_SetAntiAlias = function(shadding_pattern, bAntiAlias);
Parameters
- shadding_pattern IntPtr
- The handle to the shading pattern.
- bAntiAlias Boolean
- A flag
Return Value
Booleantrue if antialiasing is applied.
Remarks
The shading operators sample shading functions at a rate determined by the resolution of the output device.
Aliasing can occur if the function is not smooth—that is, if it has a high spatial frequency relative to
the sampling rate.Anti-aliasing can be computationally expensive and is usually unnecessary, since most shading functions are smooth enough or are
sampled at a high enough frequency to avoid aliasing effects. Anti-aliasing may not be implemented on some output devices, in which case this flag is ignored.
See Also