in skiko/src/commonMain/kotlin/org/jetbrains/skia/ImageFilter.kt [253:288]
fun makeMatrixConvolution(
kernelW: Int,
kernelH: Int,
kernel: FloatArray?,
gain: Float,
bias: Float,
offsetX: Int,
offsetY: Int,
tileMode: FilterTileMode,
convolveAlpha: Boolean,
input: ImageFilter?,
crop: IRect?
): ImageFilter {
return try {
Stats.onNativeCall()
ImageFilter(
interopScope {
_nMakeMatrixConvolution(
kernelW,
kernelH,
toInterop(kernel),
gain,
bias,
offsetX,
offsetY,
tileMode.ordinal,
convolveAlpha,
getPtr(input),
toInterop(crop?.serializeToIntArray())
)
}
)
} finally {
reachabilityBarrier(input)
}
}