Java课件:填充椭圆的步骤
填充椭圆的步骤如下:(1)创建一个Graphics2D对象,将其链接到BufferedImage。例如,创建一个BufferedImage对象buf:BufferedImage buf = new BufferedImage(img.getWidth(this), img.getHeight(this), BufferedImage.TYPE_INT_ARGB);
然后创建一个临时Graphics2D对象tmpG:Graphics tmpG = buf.createGraphics();
接下来,将图像绘制到临时缓冲区:tmpG.drawImage(img, 10, this);
9.2MB
文件大小:
评论区