import javax.swing.*;
import java.awt.*;
/**
* pTitle: 图片的处理,/p
* pDescription: 将图片放大和翻转显示/p
* pCopyright: Copyright (c) 2003/p
* pFilename: ImgDemo.java/p
* @version 1.0
*/
class ImgDemo extends JFrame {
Image image;
/**
*br方法说明:构造器,显示窗体
*br输入参数:
*br返回类型:
*/
ImgDemo(String filename) {
setTitle("drawImage Example");
try {
image = getToolkit().getImage(filename);
setIconImage(image);
} catch (Exception e) {
e.printStackTrace();
}...[ 查看全文 ]