- 707 名前:デフォルトの名無しさん mailto:sage [2008/06/01(日) 03:35:11 ]
- ファイル名とかは含まず、画像内容そのもののダイジェストを求めたくて、
↓作ったけど、もうちょっと最適化できないでしょうか? sourcepost.sytes.net/sourcepost/sourceview.aspx?source_id=30326 ファイル名とかパスを除くための、 特に46〜50行目ぐらいの↓が無駄な気がするけど、いい案が思い浮かばないです。 // (1)Normalize BufferedImage bimg = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_3BYTE_BGR); Graphics g = bimg.createGraphics(); g.drawImage(icon.getImage(), 0, 0, null); ImageIcon normalize_icon = new ImageIcon(bimg);
|

|