Class TransparencySupporter

Class TransparencySupporter

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.7.0)

The object supporting transparency.

public class TransparencySupporter
   {
       private double _opacity;
       public double Opacity
       {
           get { return this._opacity; }
           set { this._opacity = value; UpdateChildrenTransparency(); }
       }
       private void UpdateChildrenTransparency()
       {
       }
   }

Inheritance

object TransparencySupporter

Derived

Pen

Inherited Members

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

Constructors

TransparencySupporter()

public TransparencySupporter()
   {
   }

Properties

Opacity

Gets or sets the object’s opacity. The value should be between 0 and 1. Value of 0 means that object is fully visible, value of 1 means the object is fully opaque.

public float Opacity
   {
      get;
      set;
   }

Property Value

float

Methods

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.

Equals(TransparencySupporter)

Check if objects are equal.

protected bool Equals(TransparencySupporter other)
   {
      return this._alphaValue == other._alphaValue &&
             this._backgroundColor == other._backgroundColor;
   }

Parameters

other TransparencySupporter

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.

 English