public abstract void copyArea(int x,
                               int y,
                               int width,
                               int height,
                               int dx,
                               int dy)Copies an area of the component by a distance specified by dx and dy. From the point specified by x and y, this method copies downwards and to the right. To copy an area of the component to the left or upwards, specify a negative value for dx or dy. If a portion of the source rectangle lies outside the bounds of the component, or is obscured by another window or component, copyArea will be unable to copy the associated pixels. The area that is omitted can be refreshed by calling the component's paint method. Parameters: 
x - the x coordinate of the source rectangle. 
y - the y coordinate of the source rectangle. 
width - the width of the source rectangle. 
height - the height of the source rectangle. 
dx - the horizontal distance to copy the pixels. 
dy - the vertical distance to copy the pixels. 

解决方案 »

  1.   

    graphics.copyArea(x, y, iWidth, iHeight, dx, dy);
    x, y -- 拷贝区域的起始坐标
    iWidth, iHeight -- 拷贝区域的宽度和高度
    dx, dy -- 从点(x, y)偏移(dx, dy)开始拷贝,若dx为负,则在(x, y)的左边,dy为负,则在上边
      

  2.   

    这个过程各参数的意义?
    public void start()
    public void run()
    public void init()
    请告诉我Applet先执行那个过程?
      

  3.   

            Image image = createImage(m_nImgWidth, m_nImgHeight + 1);
            Graphics g = image.getGraphics();
            g.drawImage(m_Image, 0, 1, this);
            for(int i = 0; i < m_nImgHeight >> 1; i++)
            {
                g.copyArea(0, i, m_nImgWidth, 1, 0, m_nImgHeight - i);
                g.copyArea(0, m_nImgHeight - 1 - i, m_nImgWidth, 1, 0, -m_nImgHeight + 1 + (i << 1));
                g.copyArea(0, m_nImgHeight, m_nImgWidth, 1, 0, -1 - i);
            }
    谁能告诉我这一段程序是干什么的,这一段程序对图片进行了什么处理?
    我可以另外价高分的