All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.org.jetbrains.skia.skottie.Animation.jvm.kt Maven / Gradle / Ivy

There is a newer version: 0.6.7
Show newest version
package org.jetbrains.skia.skottie

import org.jetbrains.skia.impl.Native
import org.jetbrains.skia.impl.Stats
import org.jetbrains.skia.impl.interopScope


fun Animation.Companion.makeFromFile(path: String): Animation {
    Stats.onNativeCall()
    interopScope {
        val ptr = _nMakeFromFile(toInterop(path))
        require(ptr != Native.NullPointer) { "Failed to create Animation from path=\"$path\"" }
        return Animation(ptr)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy