相关疑难解决方法(0)

Changing .png to work with JpegImagesToMovie.java

I am using the JpegImagesToMovie.java to convert images to a .mov file. I was wondering if there was anyway I could edit this to work with .png files as the quality of the video is not very good and changing it would improve it.

ImageIO.write(img, "png", new File("C:\\Users\\user\\Desktop\\tmp\\" + System.currentTimeMillis() + ".png"));

ImageIO.write(img, "jpeg", new File("C:\\Users\\user\\Desktop\\tmp\\" + System.currentTimeMillis() + ".png"));

ImageIO.write(img, "png", new File("C:\\Users\\user\\Desktop\\tmp\\" + System.currentTimeMillis() + ".jpeg"));
Run Code Online (Sandbox Code Playgroud)

All three of those would produce a video (no errors through the …

java png jpeg image

5
推荐指数
2
解决办法
1867
查看次数

标签 统计

image ×1

java ×1

jpeg ×1

png ×1