RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Java>列表

处理A4不能打印大图片

来源: 作者: 时间:2007-10-15 点击:

        RenderingHints renderingHints =  new  RenderingHints(  
            RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);  
        AffineTransformOp scaleOp 
= new
 AffineTransformOp(  
                AffineTransform.getScaleInstance(scale, scale), renderingHints);  
        BufferedImage targetImage 
= new
 BufferedImage(  
            (
int)(image.getWidth() *
 scale),    
            (
int)(image.getHeight() *
 scale), image.getType());  
        scaleOp.filter(image, targetImage);  
        
return
   targetImage;  
    }

    
    
public static void main(String[] args) 

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册