`
ihuashao
  • 浏览: 4552276 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

使用 Java 进行图像处理 - 图像裁剪

阅读更多

版权声明:转载时请务必保留以下作者信息和链接
作者:陈维(chenweionline@hotmail.com)作者的网站:http://www.chenwei.mobi

/***//**
*图像裁剪。
*
@paramsrcImage源图像。
*
@param rect 裁剪区域。
*
@return裁剪后的图像。
*/

publicstaticBufferedImagecutJ2D(BufferedImagesrcImage,Rectanglerect)...{

returnsrcImage.getSubimage(rect.x,rect.y,rect.width,rect.height);

}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics