有一个image类不知有没有你说的这些功能

解决方案 »

  1.   

    下载 Java 的JAI SDK吧
    以下这是相关的API的开发包和文档,它实现的功能绝对不比PhotoShop差!
    jai_imageio-1_0_01-doc.zip
    jai_imageio-1_0_01-lib-windows-i586-jdk.exe
    jai1_0_1-guide.zip
    jai-1_1_2_01-lib-windows-i586-jdk.exe
    jai-1_1_2-windows-i586-sample.exe
    jai-1_1-mr-doc.zip
      

  2.   

    我做WEB系统比较多,对图片处理方面不通,有没有源码?
      

  3.   

    我用过ImageMagick,
    它是一个处理图象的软件。提供JAVA,C++,的实现借口。
    可以完成很多的图象处理功能
    楼主去查点资料吧
      

  4.   

    class FinishedIcon
        implements Icon
    {
        private int x_pos;
        private int y_pos;
        private int width;
        private int height;
        private Icon fileIcon;
        private Image image;
        private Rectangle rect;
        public FinishedIcon(Icon fileIcon,Rectangle rect)
        {
            this.fileIcon = fileIcon;
            image = BaseFlowIcons.IMAGE_FINISH;
            width = fileIcon.getIconWidth();
            height = fileIcon.getIconHeight();
            rect=rect;
        }    public void paintIcon(Component c, Graphics g, int x, int y)
        {
            this.x_pos = x;
            this.y_pos = y;        int y_p = y + 2;        g.drawImage(image, width, height / 2, null);        if (fileIcon != null)
            {
                int w = (x - width) > 0 ? x - width : 0;
                fileIcon.paintIcon(c, g, width + 10, y_p / 2);
            }
        }    public int getIconWidth()
        {
            return width + (fileIcon != null ? fileIcon.getIconWidth() : 0);
        }    public int getIconHeight()
        {
            return height;
        }    public Rectangle getBounds()
        {
            return new Rectangle(rect.x , rect.y , width, height);
        }
    }