Table of Contents

Class CmxFillStyle

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

Fill style for shapes.

public class CmxFillStyle
Inheritance
CmxFillStyle
Inherited Members

Constructors

CmxFillStyle()

public CmxFillStyle()

Properties

Color1

Gets or sets the primary color.

public CmxColor Color1 { get; set; }

Property Value

CmxColor

The primary color. Used for Uniform and Two-color pattern fill types.

Color2

Gets or sets the secondary color.

public CmxColor Color2 { get; set; }

Property Value

CmxColor

The secondary color. Used only for Two-color pattern fill type.

FillType

Gets or sets the type of the fill.

public FillTypes FillType { get; set; }

Property Value

FillTypes

The type of the fill.

Gradient

Gets or sets the gradient info.

public CmxGradient Gradient { get; set; }

Property Value

CmxGradient

The gradient info. Used only for Fountain fill type.

ImageFill

Gets or sets the image fill info.

public CmxImageFill ImageFill { get; set; }

Property Value

CmxImageFill

The image fill info. Used for Imported bitmap and Two-color pattern fill types.

Transform

Gets or sets the fill transform.

public Matrix Transform { get; set; }

Property Value

Matrix

The fill transform.

Methods

Equals(CmxFillStyle)

Check if objects are equal.

protected bool Equals(CmxFillStyle other)

Parameters

other CmxFillStyle

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.