New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents an image operation that adjusts the alpha (opacity) channel of the entire image.

Definition

Namespace:Telerik.Web.UI.ImageEditor

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class OpacityOperation : ImageOperation, IImageOperation

Inheritance: objectImageOperationOpacityOperation

Implements: IImageOperation

Inherited Members ImageOperation.Indexobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public OpacityOperation(double opacity, int index)
Parameters:opacitydoubleindexint
C#
public OpacityOperation(double opacity)
Parameters:opacitydouble

Properties

Gets the name of the operation.

C#
public string Name { get; }

Implements: IImageOperation.Name

Gets or sets the opacity factor to apply. Expected range is 0 (fully transparent) to 1 (fully opaque).

C#
public double Opacity { get; set; }

Methods

Applies the opacity modification to the supplied image and returns a new bitmap instance.

C#
public Image Apply(Image original)
Parameters:originalImage

The original image.

Returns:

Image

A new Image with adjusted opacity.

Implements: IImageOperation.Apply(Image)