fun drawImageRect()

in skiko/src/commonMain/kotlin/org/jetbrains/skia/Canvas.kt [494:532]


    fun drawImageRect(
        image: Image,
        srcLeft: Float,
        srcTop: Float,
        srcRight: Float,
        srcBottom: Float,
        dstLeft: Float,
        dstTop: Float,
        dstRight: Float,
        dstBottom: Float,
        samplingMode: SamplingMode,
        paint: Paint?,
        strict: Boolean
    ): Canvas {
        Stats.onNativeCall()
        try {
            _nDrawImageRect(
                _ptr,
                getPtr(image),
                srcLeft,
                srcTop,
                srcRight,
                srcBottom,
                dstLeft,
                dstTop,
                dstRight,
                dstBottom,
                samplingMode._packedInt1(),
                samplingMode._packedInt2(),
                getPtr(paint),
                strict
            )
        } finally {
            reachabilityBarrier(image)
            reachabilityBarrier(paint)
            reachabilityBarrier(this)
        }
        return this
    }