文件名称://构造缓冲图像对象-JAVA自学教程(史上最全)
文件大小:9.22MB
文件格式:PPT
更新时间:2024-05-15 17:03:50
JAVA
//构造缓冲图像对象 BufferedImage buf = new BufferedImage(w,h,BufferedImage.TYPE_INT_ARGB); //放入临时图形类 Graphics tmpG = buf.createGraphics(); tmpG.drawImage(img,10,10,this); g.drawImage(buf,10,20,this); //设置透明颜色对象 Color transBlue = new Color(0,0,255,100); g.setColor(transBlue); GeneralPath path = new GeneralPath();