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
IImageProcessingContextThe current image processing context.
amount
floatThe proportion of the conversion. Must be between 0 and 1.
Returns
Opacity(IImageProcessingContext, float, Rectangle)
Multiplies the alpha component of the image.
public static IImageProcessingContext Opacity(this IImageProcessingContext source, float amount, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
amount
floatThe proportion of the conversion. Must be between 0 and 1.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.