쩡이의 걸음마 세상여행

 private void Chartin() {
  BufferedImage img = new BufferedImage(400, 200, BufferedImage.TYPE_INT_RGB);
  Graphics2D bgin = img.createGraphics();
  bgin.setColor(Color.white);
  bgin.fillRect(0,0,400,200);
  bgin.setColor(Color.black);
  bgin = new BarChart(0, 0, 400, 200);
  bar.setLabelType(Chart.INSIDE);
  bar.setMax(20);
  bar.setScale(5);
  bar.setValue(value);
  bar.setLabel(label);
  bar.setColor(color);
  bar.paint(g);
  try {
   BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
   JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
   encoder.encode(img);
   out.close();
  } catch(Exception e) { }
 }
====================================
요기능은 나도 더 분석을~~^^ 모르는 부분들이 조금 보인다..
jpeg 만드는게 이렇게 이루어 진다는것 정도만..나중에 예제가 더 나오면 정리해서 올려야지~~!!
Posted by 알 수 없는 사용자
jsp+sql ^^ l 2007. 7. 3. 11:27

최근에 올라온 글

카테고리

분류 전체보기 (51)
그냥 (4)
php+mysql (3)
jsp+sql ^^ (9)
javascript+ajax (0)
기타 공부해요~~ (0)
책을 읽어요 (0)
도시락 반찬 만들기 (4)
my poem (26)
시와함께 (0)
정이 이야기 (3)
서울나기 맛여행~!! (1)

태그목록

달력

«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
tistory!get rss Tistory Tistory 가입하기!

공지 사항

최근에 달린 댓글

최근에 받은 트랙백