开发者

set the thumbnail width and height in xuggler

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜