摘要: 图象旋转:public void paint(Graphics g) { // TODO 自动生成的方法存根 Graphics2D g2=(Graphics2D)g; URL url=paint.class.getResource("qq.jpg"); Image img=Toolkit.... 阅读全文
posted @ 2015-04-26 22:59 ma_fighting 阅读(112) 评论(0) 推荐(0)
摘要: 为图形填充渐变色:Graphics2D g2=(Graphics2D)g;GradientPaint gra=new GradientPaint(20, 20, Color.BLUE, 100,80,Color.cyan,true); g2.setPaint(gra); ... 阅读全文
posted @ 2015-04-26 10:10 ma_fighting 阅读(198) 评论(0) 推荐(0)
历史天气查