Class CmxImageFill

Class CmxImageFill

Namespace: Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles
Assembly: Aspose.Imaging.dll (25.7.0)

Image fill info

[JsonObject(MemberSerialization.OptIn)]
   public class CmxImageFill
   {
   }

Inheritance

object CmxImageFill

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

CmxImageFill()

public CmxImageFill()
   {
   }

Properties

Images

Gets or sets the images.

[JsonProperty]
   public CmxRasterImage[] Images
   {
      get;
      set;
   }

Property Value

CmxRasterImage []

IsRelative

Gets or sets a value indicating whether patterns size values is relative.

public classMyClass
{
    [JsonProperty]
    public bool IsRelative
    {
        get;
        set;
    }
}

Property Value

bool

OffsetType

Gets or sets the type of the offset between adjacent tiles.

[JsonProperty]
   public TileOffsetTypes OffsetType
   {
      get;
      set;
   }

Property Value

TileOffsetTypes

PatternHeight

Gets or sets the height of the pattern.Uses common document distance measure unit in case if Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles.CmxImageFill.IsRelative is ‘false’,otherwise has the dimension of the image pixel height fraction.

[JsonProperty]
   public float PatternHeight
   {
      get;
      set;
   }

Property Value

float

PatternWidth

Gets or sets the width of the pattern.Uses common document distance measure unit in case if Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles.CmxImageFill.IsRelative is ‘false’,otherwise has the dimension of the image pixel width fraction.

public float PatternWidth
    {
        get;
        set;
    }

Property Value

float

Procedure

Gets or sets the procedure.

[JsonProperty]
    public CmxProcedure Procedure
    {
        get;
        set;
    }

Property Value

CmxProcedure

RcpOffset

Gets or sets the relative offset between tile rows or columns (depends on Aspose.Imaging.FileFormats.Cmx.ObjectModel.Styles.CmxImageFill.OffsetType).Dimension is fractions of height of width.

public float RcpOffset  // <-- Add comment for readability
    {
        get;
        set;
    }

Property Value

float

Rotate180

Gets or sets a value indicating whether this Aspose.Imaging.FileFormats.Cmx.ObjectModel.Specs.CmxImageSpec is upside down.

public class YourClassName
{
    [JsonProperty]
    public bool Rotate180
    {
        get;
        set;
    }
}

Property Value

bool

TileOffsetX

Gets or sets the tile offset X.

[JsonProperty]
    public float TileOffsetX
    {
        get;
        set;
    }

Property Value

float

TileOffsetY

Gets or sets the tile offset Y.

[JsonProperty]
   public float TileOffsetY
   {
       get;
       set;
   }

Property Value

float

Methods

Equals(CmxImageFill)

Check if objects are equal.

protected bool Equals(CmxImageFill other)
   {
      return (
         this._Color == other._Color &&
         this._Transparency == other._Transparency &&
         this._GradientAngle == other._GradientAngle &&
         this._CenterX == other._CenterX &&
         this._CenterY == other._CenterY
      );
   }

Parameters

other CmxImageFill

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 System.String that represents this instance.

public override string ToString()
{
}

Returns

string

A System.String that represents this instance.

 English