https://kotlinlang.org logo
#korge
Title
# korge
m

Michael Sigl

12/02/2020, 4:05 PM
Hi, is there any way to create an animated .gif from a set of images generated with
bitmap.writeTo(localvfs("file.png"), PNG)
, so that they are played like an animation? I know how do to it in Java, but I cannot import .java classes into korge
d

Deactivated User

12/02/2020, 4:57 PM
You can create the GIF from outside KorGE by using ffmpeg for example. Then KorIM supports loading GIF files
m

Michael Sigl

12/02/2020, 5:54 PM
Thanks. Is it actually possible to include java imoprts into korge?
d

Deactivated User

12/02/2020, 6:40 PM
Only on the JVM/Android target
if you plan to target only to a JAR, you can create this folder:
src/jvmMain/kotlin
then you can access to all the Java APIs
m

Michael Sigl

12/02/2020, 7:03 PM
I think for now I'll target only to a JAR. Creating the folder works fine, thank you
👍 1
14 Views