Gradient
Represents a gradient pattern.
public class Gradient : Pattern
Public Class Gradient
Inherits Pattern
Inheritance: ObjectColorPatternGradient
Derived: AutoGradient
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Remarks
See the Colors topic for more on gradient patterns.
Constructors
Gradient(Single, Single, Single, Single, CmykColor, CmykColor) | Initializes a new instance of the Gradient class. |
Gradient(Single, Single, Single, Single, Grayscale, Grayscale) | Initializes a new instance of the Gradient class. |
Gradient(Single, Single, Single, Single, RgbColor, RgbColor) | Initializes a new instance of the Gradient class. |
Properties
Color1 | Gets the first color. |
Color2 | Gets the second color. |
ColorSpace | Gets the color space for the color. |
X1 | Gets or sets the X coordinate of the first color. |
X2 | Gets or sets the X coordinate of the second color. |
Y1 | Gets or sets the Y coordinate of the first color. |
Y2 | Gets or sets the Y coordinate of the second color. |
Methods
DrawFill(OperatorWriter) | Draws the color data to the given OperatorWriter object. (Inherited from Color) |
DrawFill(PageWriter) | Draws the color data to the given PageWriter object. |
DrawStroke(OperatorWriter) | Draws the color data to the given OperatorWriter object. (Inherited from Color) |
DrawStroke(PageWriter) | Draws the color data to the given PageWriter object. |
Equals(Object) | Tests equality of colors. |
GetHashCode() | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetResource(PageWriter) | Gets the resource for the gradient. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |