[]
In-place effect that adjusts the opacity of an image by multiplying the alpha channel of the input by the specified opacity value.
public class OpacityEffect : BaseInplaceEffect
Applies the effect to a part of the specified GcBitmap.
protected override void Apply(GcBitmap bitmap, int x, int y, int width, int height)
bitmap
GcBitmapThe target GcBitmap.
x
intThe x-coordinate of the target rectangle, in pixels.
y
intThe y-coordinate of the target rectangle, in pixels.
width
intThe width of the target rectangle, in pixels.
height
intThe height of the target rectangle, in pixels.
Applies the effect to the specified GcBitmap.
protected override void Apply(GcBitmap bitmap)
Returns an instance of the OpacityEffect class.
public static OpacityEffect Get(float opacity)
opacity
floatThe multiplier to the input image's alpha channel. The minimum value is 0.0f and the maximum value is 1.0f.