摘要: 水印:public void paint(Graphics g) { // TODO 自动生成的方法存根 Graphics2D g2=(Graphics2D)g;URL url=paint.class.getResource("qq.jpg");Image img=Toolkit.getDef... 阅读全文
posted @ 2015-04-27 22:52 ma_fighting 阅读(218) 评论(0) 推荐(0)
摘要: AlphaComposite al=AlphaComposite.SrcOver.derive(0.3f);g2.setComposite(al); 阅读全文
posted @ 2015-04-27 21:41 ma_fighting 阅读(511) 评论(0) 推荐(0)
摘要: public class paint extends JFrame{ public paint(){ setLocation(0, 0); setSize(400, 400); setDefaultCloseOperation(EXIT_ON_CLOSE); Container co... 阅读全文
posted @ 2015-04-27 21:32 ma_fighting 阅读(247) 评论(0) 推荐(0)
摘要: public void paint(Graphics g) { // TODO 自动生成的方法存根 Graphics2D g2=(Graphics2D)g;// URL url=paint.class.getResource("qq.jpg");// Image img=Toolkit.g... 阅读全文
posted @ 2015-04-27 17:36 ma_fighting 阅读(179) 评论(0) 推荐(0)
摘要: public void paint(Graphics g) { int x=100; int y=100; String str=new String("mafeng"); g.setColor(Color.darkGray); Font font =new ... 阅读全文
posted @ 2015-04-27 17:28 ma_fighting 阅读(181) 评论(0) 推荐(0)
摘要: public void paint(Graphics g) { // TODO 自动生成的方法存根 int h=400; int pix[]=new int[w*h]; int dex=0; for(int i=0;i<h;i++){ int red=(i*255)/(h-1); ... 阅读全文
posted @ 2015-04-27 17:12 ma_fighting 阅读(282) 评论(0) 推荐(0)
摘要: public class BufferedImageBuilder {private static final int DEFAULT_IMAGE_TYPE = BufferedImage.TYPE_INT_RGB;public BufferedImage bufferImage(Image ima... 阅读全文
posted @ 2015-04-27 16:46 ma_fighting 阅读(2817) 评论(0) 推荐(0)
历史天气查