SKImageFilter.CreateMatrixConvolution 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
CreateMatrixConvolution(SKSizeI, Single[], Single, Single, SKPointI, SKMatrixConvolutionTileMode, Boolean, SKImageFilter, SKImageFilter+CropRect) |
Obsolete.
Creates an image that filter applies an NxM image processing kernel. |
CreateMatrixConvolution(SKSizeI, Single[], Single, Single, SKPointI, SKShaderTileMode, Boolean, SKImageFilter, SKImageFilter+CropRect) |
CreateMatrixConvolution(SKSizeI, Single[], Single, Single, SKPointI, SKMatrixConvolutionTileMode, Boolean, SKImageFilter, SKImageFilter+CropRect)
Caution
Use CreateMatrixConvolution(SKSizeI, float[], float, float, SKPointI, SKShaderTileMode, bool, SKImageFilter, SKImageFilter.CropRect) instead.
Creates an image that filter applies an NxM image processing kernel.
public static SkiaSharp.SKImageFilter CreateMatrixConvolution (SkiaSharp.SKSizeI kernelSize, float[] kernel, float gain, float bias, SkiaSharp.SKPointI kernelOffset, SkiaSharp.SKMatrixConvolutionTileMode tileMode, bool convolveAlpha, SkiaSharp.SKImageFilter input = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
[System.Obsolete("Use CreateMatrixConvolution(SKSizeI, float[], float, float, SKPointI, SKShaderTileMode, bool, SKImageFilter, SKImageFilter.CropRect) instead.")]
public static SkiaSharp.SKImageFilter CreateMatrixConvolution (SkiaSharp.SKSizeI kernelSize, float[] kernel, float gain, float bias, SkiaSharp.SKPointI kernelOffset, SkiaSharp.SKMatrixConvolutionTileMode tileMode, bool convolveAlpha, SkiaSharp.SKImageFilter input = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
Parameters
- kernelSize
- SKSizeI
The kernel size in pixels, in each dimension (N by M).
- kernel
- Single[]
The image processing kernel, with N * M elements in row order.
- gain
- Single
A scale factor applied to each pixel after convolution.
- bias
- Single
A bias factor added to each pixel after convolution.
- kernelOffset
- SKPointI
An offset applied to each pixel coordinate before convolution.
- tileMode
- SKMatrixConvolutionTileMode
How accesses outside the image are treated.
- convolveAlpha
- Boolean
Whether or not all channels are convolved, or just the RGB channels.
- input
- SKImageFilter
The input filter to use.
- cropRect
- SKImageFilter.CropRect
The rectangle to which the output processing will be limited.
Returns
Returns the new SKImageFilter, or null on error.
- Attributes
Applies to
CreateMatrixConvolution(SKSizeI, Single[], Single, Single, SKPointI, SKShaderTileMode, Boolean, SKImageFilter, SKImageFilter+CropRect)
public static SkiaSharp.SKImageFilter CreateMatrixConvolution (SkiaSharp.SKSizeI kernelSize, float[] kernel, float gain, float bias, SkiaSharp.SKPointI kernelOffset, SkiaSharp.SKShaderTileMode tileMode, bool convolveAlpha, SkiaSharp.SKImageFilter input = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
Parameters
- kernelSize
- SKSizeI
- kernel
- Single[]
- gain
- Single
- bias
- Single
- kernelOffset
- SKPointI
- tileMode
- SKShaderTileMode
- convolveAlpha
- Boolean
- input
- SKImageFilter
- cropRect
- SKImageFilter.CropRect
Returns
Applies to
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기