当前位置: 技术问答>java相关
谁帮我解释graphic.copyArea(0, i, m_nImgWidth, 1, 0, m_nImgHeight - i)
来源: 互联网 发布时间:2015-03-28
本文导语: 谁帮我解释graphic.copyArea(0, i, m_nImgWidth, 1, 0, m_nImgHeight - i) 这句话是什么意思,这个过程各参数的意义? | graphics.copyArea(x, y, iWidth, iHeight, dx, dy); x, y -- 拷贝区域的起始坐标 iWidth, iHei...
谁帮我解释graphic.copyArea(0, i, m_nImgWidth, 1, 0, m_nImgHeight - i)
这句话是什么意思,这个过程各参数的意义?
这句话是什么意思,这个过程各参数的意义?
|
graphics.copyArea(x, y, iWidth, iHeight, dx, dy);
x, y -- 拷贝区域的起始坐标
iWidth, iHeight -- 拷贝区域的宽度和高度
dx, dy -- 从点(x, y)偏移(dx, dy)开始拷贝,若dx为负,则在(x, y)的左边,dy为负,则在上边
x, y -- 拷贝区域的起始坐标
iWidth, iHeight -- 拷贝区域的宽度和高度
dx, dy -- 从点(x, y)偏移(dx, dy)开始拷贝,若dx为负,则在(x, y)的左边,dy为负,则在上边
|
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.
|
就是拷贝图形
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。