Table of Contents

Class OpacityExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions that allow the alteration of the opacity component of an Image using Mutate/Clone.

public static class OpacityExtensions
Inheritance
OpacityExtensions
Inherited Members

Methods

Opacity(IImageProcessingContext, float)

Multiplies the alpha component of the image.

public static IImageProcessingContext Opacity(this IImageProcessingContext source, float amount)

Parameters

source IImageProcessingContext

The current image processing context.

amount float

The proportion of the conversion. Must be between 0 and 1.

Returns

IImageProcessingContext

The IImageProcessingContext.

Opacity(IImageProcessingContext, float, Rectangle)

Multiplies the alpha component of the image.

public static IImageProcessingContext Opacity(this IImageProcessingContext source, float amount, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

amount float

The proportion of the conversion. Must be between 0 and 1.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.