Is it possible to use kt lib for java to convert gp file to image? #2457
-
|
I have a java backend server, which accept gp file and convert it to image. Is there a way to import the kotlin lib in maven project, and call kt version ScoreLoader to load gp file then export to image byte stream? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Theoretically yes but currently no. The core of alphaTab doesn't rely on any platform, and there is just a special Android UI control integration on top. In fact we are running our whole test suite as rather classical JUnit suite on JVM, nothing Android specific there. The current state is just that we only build and publish an Android specific integration library. For Java we would likely not build another UI integration as the UI ecosystem is very fractured in Java with many limitations making it hard to make people really happy. For your needs you would then use the low level APIs to read files and translate them to images using alphaSkia (or generate SVGs). https://www.alphatab.net/docs/guides/lowlevel-apis At some point I dropped Kotlin Multiplatform builds as the technology was constantly breaking and build times were ridiculous. I think the efforts to have a JVM core lib would be similar to how we do things for .net:
This way we would not need a big KMP setup and you could use the core library in a JVM environment. Happy to accept any contributions, I added #2458 as a general roadmap item. |
Beta Was this translation helpful? Give feedback.
Theoretically yes but currently no.
The core of alphaTab doesn't rely on any platform, and there is just a special Android UI control integration on top. In fact we are running our whole test suite as rather classical JUnit suite on JVM, nothing Android specific there.
The current state is just that we only build and publish an Android specific integration library.
For Java we would likely not build another UI integration as the UI ecosystem is very fractured in Java with many limitations making it hard to make people really happy. For your needs you would then use the low level APIs to read files and translate them to images using alphaSkia (or generate SVGs). https://www.alphatab.net/do…