Hello, What is the reason the `fun Bitmap.toBuffer...
# compose-desktop
l
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
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
This is not the sources, you have compiled .class files in the repo 🤔
d
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