https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
l

louiscad

03/22/2024, 8:14 PM
Hello, What is the reason the
fun Bitmap.toBufferedImage(): BufferedImage
doesn't support
ColorType.RGBA_8888
? The
render
function on
ImageComposeScene
returns an
Image
. I can then call
Bitmap.makeFromImage(…)
with it, but the color type is RGBA_8888, which crashes if I try to get a BufferedImage from it. My use case is recording a video from Compose renders using JavaCV (backed by OpenCV & ffmpeg). I'm currently trying to get a
Frame
from a Compose Desktop
Image
.
z

Zoff

03/24/2024, 8:06 AM
if you want to get desktop screen grab and/or audio recording you can have a look at: https://github.com/zoff99/ffmpeg_av_jni
which i wrote for exactly that purpose. since there is not good solution for java/compose/kotlin
l

louiscad

03/25/2024, 8:08 AM
This is not the sources, you have compiled .class files in the repo 🤔
d

Dragos Rachieru

03/26/2024, 9:49 AM
it looks like this is a gitignore issue, the
java
files are in the same folder with
class
files I would add
*.class
to gitignore and remove the already committed class files