Blend Class
Defines a blend pattern. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Aspose.ImagingBlend

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 20.06
Syntax
[SerializableAttribute]
public sealed class Blend

The Blend type exposes the following members.

Constructors
  NameDescription
Public methodBlend
Initializes a new instance of the Blend class. The number of elements in the factor and blend arrays will be equal to 1.
Public methodBlend(Int32)
Initializes a new instance of the Blend class with the specified number of factors and positions.
Properties
  NameDescription
Public propertyFactors
Gets or sets the array of blend factors for the gradient.
Public propertyPositions
Gets or sets the array of blend positions for the gradient.
Methods
  NameDescription
Public methodEquals
Tests whether the specified object is a Blend class and is equivalent to this Blend class.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks
The typical blend class usage is defining a blend pattern for brush. And thus the blend properties should be initialized carefully. Null arrays are not allowed. The brush will throw the appropriate exception if blend factors or positions array are empty or their length is not the same. If there are two or more elements in the positions array then the first element should be 0 and the last should be 1.
See Also