PdfGradientFill Constructor

Creates a gradient between two colors

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
C#
public PdfGradientFill(
	PdfColor startColor,
	PdfColor endColor,
	PdfGradientDirection direction = PdfGradientDirection.Vertical
)

Parameters

startColor  PdfColor
The color at the start of the gradient
endColor  PdfColor
The color at the end of the gradient
direction  PdfGradientDirection  (Optional)
The direction of the gradient across the shape

See Also