rt,怎么j2me上这么多实现的方法,J2se API查半天没结果,那个要怎么弄????
谢谢。
谢谢。
解决方案 »
- java怎么把最后一个位移
- 編碼問題,高手速進
- 一个很菜的文件传输问题
- JAVA开发播放器问题?
- 请问如何用java实现类似windows屏保-飞越星空的程序,请指教啊!!!
- applet 安全问题
- 请问:在applet中是否可以使用dbswing控件,应如何避免ie中出现的classdefnotfound错误?谢谢
- 我用JB7新建了一个工程,又新建了个类。点运行,可是出现了PROJECT-》PROPERTY-》RUN,请问我应该在这里怎么设置啊?
- 为什么我用jbuilder7生成的.exe文件运行时居然需要jre??这也叫什么??
- Java与xml
- JDK1.5的泛型与枚举
- JDBC如何把查询出来的信息导入TABLE
还是想切了之后用来显示在界面上?
如果是在界面上
那我给你个切的方法 //从指定URL直接读取图片,并剪切出{x,y,width,feight}其中的部分
public static BufferedImage cut(URL sourceURL, int x, int y, int width, int height) {
BufferedImage bufImage = null;
try {
bufImage = ImageIO.read(sourceURL);
} catch (IOException e1) {
e1.printStackTrace();
}
bufImage = bufImage.getSubimage(x, y, width, height);
return bufImage;
} //将指定的BufferedImage,剪切出{x,y,width,feight}其中的部分
public static BufferedImage cut(BufferedImage img, int x, int y, int width, int height) {
BufferedImage bufImage = null;
bufImage = img.getSubimage(x, y, width, height);
return bufImage;
}