Table of Contents

Class CmxGradient

Namespace
Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles
Assembly
Aspose.Imaging.dll

Represents a gradient info.

public class CmxGradient
Inheritance
CmxGradient
Inherited Members

Constructors

CmxGradient()

public CmxGradient()

Properties

Angle

Gets or sets the angle.

public float Angle { get; set; }

Property Value

float

The angle between vector of the linear path and the horizontal.

CenterXOffset

Gets or sets the center x offset.

public uint CenterXOffset { get; set; }

Property Value

uint

The center x offset.

CenterYOffset

Gets or sets the center y offset.

public uint CenterYOffset { get; set; }

Property Value

uint

The center y offset.

Colors

Gets or sets the colors.

public CmxColor[] Colors { get; set; }

Property Value

CmxColor[]

The array of gradient colors. The length of array must be greater or equal 2.

EdgeOffset

Gets or sets the edge offset.

public ushort EdgeOffset { get; set; }

Property Value

ushort

The edge offset.

Mode

Gets or sets the mode.

public ushort Mode { get; set; }

Property Value

ushort

The mode.

Offsets

Gets or sets the offsets.

public float[] Offsets { get; set; }

Property Value

float[]

The array of gradient color offsets. The length of array must be greater or equal 2. First value must be equal 0, last value must be equal 1, other value must be in range (0,1)

RateMethod

Gets or sets the rate method.

public ushort RateMethod { get; set; }

Property Value

ushort

The rate method.

RateValue

Gets or sets the rate value.

public ushort RateValue { get; set; }

Property Value

ushort

The rate value.

Screen

Gets or sets the screen.

public ushort Screen { get; set; }

Property Value

ushort

The screen.

Steps

Gets or sets the steps.

public ushort Steps { get; set; }

Property Value

ushort

The steps.

Type

Gets or sets the type.

public GradientTypes Type { get; set; }

Property Value

GradientTypes

The type.

Methods

Equals(CmxGradient)

Check if objects are equal.

protected bool Equals(CmxGradient other)

Parameters

other CmxGradient

The other object.

Returns

bool

The equality comparison result.

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()

Returns

int

The hash code.

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.