SKImageFilter.CreateArithmetic Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateArithmetic(Single, Single, Single, Single, Boolean, SKImageFilter) |
Creates an image filter that combines two images using the arithmetic blend formula: result = k1srcdst + k2src + k3dst + k4. |
| CreateArithmetic(Single, Single, Single, Single, Boolean, SKImageFilter, SKImageFilter) |
Creates an image filter that combines two images using the arithmetic blend formula: result = k1srcdst + k2src + k3dst + k4. |
| CreateArithmetic(Single, Single, Single, Single, Boolean, SKImageFilter, SKImageFilter, SKRect) |
Creates an image filter that combines two images using the arithmetic blend formula: result = k1srcdst + k2src + k3dst + k4. |
CreateArithmetic(Single, Single, Single, Single, Boolean, SKImageFilter)
Creates an image filter that combines two images using the arithmetic blend formula: result = k1srcdst + k2src + k3dst + k4.
public static SkiaSharp.SKImageFilter CreateArithmetic(float k1, float k2, float k3, float k4, bool enforcePMColor, SkiaSharp.SKImageFilter? background);
Parameters
- k1
- Single
The first arithmetic blend coefficient.
- k2
- Single
The second arithmetic blend coefficient.
- k3
- Single
The third arithmetic blend coefficient.
- k4
- Single
The fourth arithmetic blend coefficient.
- enforcePMColor
- Boolean
Whether to enforce premultiplied colors in the result.
- background
- SKImageFilter
The background image filter, or null to use the source bitmap.
Returns
Returns the new SKImageFilter, or null on error.
Applies to
CreateArithmetic(Single, Single, Single, Single, Boolean, SKImageFilter, SKImageFilter)
Creates an image filter that combines two images using the arithmetic blend formula: result = k1srcdst + k2src + k3dst + k4.
public static SkiaSharp.SKImageFilter CreateArithmetic(float k1, float k2, float k3, float k4, bool enforcePMColor, SkiaSharp.SKImageFilter? background, SkiaSharp.SKImageFilter? foreground);
Parameters
- k1
- Single
The first arithmetic blend coefficient.
- k2
- Single
The second arithmetic blend coefficient.
- k3
- Single
The third arithmetic blend coefficient.
- k4
- Single
The fourth arithmetic blend coefficient.
- enforcePMColor
- Boolean
Whether to enforce premultiplied colors in the result.
- background
- SKImageFilter
The background image filter, or null to use the source bitmap.
- foreground
- SKImageFilter
The foreground image filter, or null to use the source bitmap.
Returns
Returns the new SKImageFilter, or null on error.
Applies to
CreateArithmetic(Single, Single, Single, Single, Boolean, SKImageFilter, SKImageFilter, SKRect)
Creates an image filter that combines two images using the arithmetic blend formula: result = k1srcdst + k2src + k3dst + k4.
public static SkiaSharp.SKImageFilter CreateArithmetic(float k1, float k2, float k3, float k4, bool enforcePMColor, SkiaSharp.SKImageFilter? background, SkiaSharp.SKImageFilter? foreground, SkiaSharp.SKRect cropRect);
Parameters
- k1
- Single
The first arithmetic blend coefficient.
- k2
- Single
The second arithmetic blend coefficient.
- k3
- Single
The third arithmetic blend coefficient.
- k4
- Single
The fourth arithmetic blend coefficient.
- enforcePMColor
- Boolean
Whether to enforce premultiplied colors in the result.
- background
- SKImageFilter
The background image filter, or null to use the source bitmap.
- foreground
- SKImageFilter
The foreground image filter, or null to use the source bitmap.
- cropRect
- SKRect
The rectangle to which the output processing will be limited.
Returns
Returns the new SKImageFilter, or null on error.