本文介绍了是否有图像的java库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是java中图像处理的新手。

我被赋予了重新调整和缩放网站图像的任务

I am new to image processing in java .
I was given a task to re-size and scale images image of a web site

是否有一个简单的库可以执行此任务?

a库我必须下载一个jar - 添加到我的项目中?

我不想被迫安装编解码器和文件到Windows。

Is there a simple Library that will do this task?
a library where i have to download a jar - added to my project ?
I prefer not to be forced to install codecs and files to the windows.

我需要图书馆只支持基本功能

I need the library to support only the basic functions

Lib.cropImage();
Lib.resizImage();
Lib.scaleImage()

我已经找到了一个名为的库JAI 但我找不到要下载它的jar。

我错过了什么?

I already found a library called JAI but I can't find the jar to download it.
Am I missing something ?

推荐答案

您可以使用标准 Java库的一部分。
使用

You can use the standard Image class part of Java libraries.Scaling images should be fairly easy by using Image.getScaledInstance(int width, int height, int hints)

这篇关于是否有图像的java库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 12:34
查看更多