Click or drag to resize

PdfLinearGradientBrush Class

Implements linear gradient brush by using PDF axial shading pattern.
Inheritance Hierarchy
System Object
Spire.Pdf.Graphics PdfBrush
Spire.Pdf.Graphics PdfGradientBrush
Spire.Pdf.Graphics PdfLinearGradientBrush

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfLinearGradientBrush : PdfGradientBrush

The PdfLinearGradientBrush type exposes the following members.

Constructors
Properties
Name Description
Public property AntiAlias
Gets or sets a value indicating whether use anti aliasing algorithm.
(Inherited from PdfGradientBrush .)
Public property Background
Gets or sets the background color of the brush.
(Inherited from PdfGradientBrush .)
Public property Blend
Gets or sets a PdfBlend that specifies positions and factors that define a custom falloff for the gradient.
Public property Extend
Gets or sets the value indicating whether the gradient should extend starting and ending points.
Public property InterpolationColors
Gets or sets a ColorBlend that defines a multicolor linear gradient.
Public property LinearColors
Gets or sets the starting and ending colors of the gradient.
Public property Rectangle
Gets a rectangular region that defines the boundaries of the gradient.
Top
Methods
Name Description
Public method Clone
Creates a new copy of a brush.
(Overrides PdfBrush Clone .)
Protected method CloneAntiAliasingValue
Clones the anti aliasing value.
(Inherited from PdfGradientBrush .)
Protected method CloneBackgroundValue
Clones the background value.
(Inherited from PdfGradientBrush .)
Public method Dispose
Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
(Inherited from PdfGradientBrush .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also