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.
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.
解决方案 »
- 江湖求救~~~JAVA二维数组问题~急急急
- Eclipse导出JAR
- java swing問題!(跪求)
- 想封装一个SOCKET的类,高分求助
- 有偿转让Java即时通信工具源程序及设计文档
- \"n1\"op\"n2\"");里面的\"是什么意思?有三个每一个都是什么意思?
- 初次提问,向大家求教: 获取日期和星期方法!!
- Java能调C++写的函数吗
- 在JAVA中如何能够获得制定的文件大小? ( 有例子的给帖一个,谢了)
- 我在jbuilder中编译带有swing awt之类要显示菜单项的程序编译通过,但运行却什么都不显示,为什么?
- 无聊,哪里能下载武侠小说!(内空)
- 提问学JBuilder看什么书好?对有价值的建议有重分!
x, y -- 拷贝区域的起始坐标
iWidth, iHeight -- 拷贝区域的宽度和高度
dx, dy -- 从点(x, y)偏移(dx, dy)开始拷贝,若dx为负,则在(x, y)的左边,dy为负,则在上边
public void start()
public void run()
public void init()
请告诉我Applet先执行那个过程?
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);
}
谁能告诉我这一段程序是干什么的,这一段程序对图片进行了什么处理?
我可以另外价高分的