开发者

set the thumbnail width and height in xuggler

开发者 https://www.devze.com 2023-03-06 16:43 出处:网络
i am using xuggler to obtain the thumbnail of a video file amd the image is created by xuggler in dimension 640*480 but i want to image size in 200*200 or 2--*2-- if it possible then please tell开发者

i am using xuggler to obtain the thumbnail of a video file amd the image is created by xuggler in dimension 640*480 but i want to image size in 200*200 or 2--*2-- if it possible then please tell开发者_开发知识库 me and how i do it.


You could just resize it in java with:

BufferedImage resizedImage = new BufferedImage(IMG_WIDTH, IMG_HEIGHT, type);
Graphics2D g = resizedImage.createGraphics();
g.drawImage(originalImage, 0, 0, IMG_WIDTH, IMG_HEIGHT, null);
g.dispose()
0

精彩评论

暂无评论...
验证码 换一张
取 消