网站首页

家园论坛

老版论坛

家园博客

业界新闻

技术文档

下载中心

速查中心

图片中心

硬件资讯
上一篇:Java Socket编程 下一篇:JAVA实现数据采集程序基本原理
高级图像处理图像I/O API RC 1.0

来源: 作者:John Zukowski 添加日期:2006-6-11 8:57:14 点击次数:

                                       try  {
                                       String  name  =  prompt.getText();
                                       File  file  =  new  File(name);
                                       if  (file.exists())  {
                                               BufferedImage  image  =  
                                                               ImageIO.read(file.toURL());
                                       if  (image  ==  null)  {
                                               System.err.println("Invalid  input  
                                                               file  format");
                                       }  else  {
                                             String  selection  =  
                                                         (String)comboBox.getSelectedItem();
                                               String  outputFilename  =  name  +  
                                                             "."  +  selection;
                                               File  outputFile  =  new  File(outputFilename);

本新闻共8页,当前在第4页  1  2  3  4  5  6  7  8  

 
设为首页 | 加入收藏 | 业务办理 | 友情链接 | 论坛版面 | 浙ICP备07502118号 |