本文整理了Java中java.awt.Graphics2D.copyArea()
方法的一些代码示例,展示了Graphics2D.copyArea()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics2D.copyArea()
方法的具体详情如下:
包路径:java.awt.Graphics2D
类名称:Graphics2D
方法名:copyArea
暂无
代码示例来源:origin: org.apache.poi/poi
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
getG2D().copyArea(x,y,width,height,dx,dy);
}
代码示例来源:origin: apache/pdfbox
@Override
public void copyArea(int x, int y, int width, int height, int dx, int dy)
{
groupG2D.copyArea(x, y, width, height, dx, dy);
alphaG2D.copyArea(x, y, width, height, dx, dy);
}
代码示例来源:origin: apache/cloudstack
@Override
public void paint(BufferedImage image, Graphics2D graphics) {
graphics.copyArea(srcX, srcY, width, height, x - srcX, y - srcY);
}
}
代码示例来源:origin: geotools/geotools
public void copyArea(int x, int y, int width, int height, int dx, int dy) {
delegate.copyArea(x, y, width, height, dx, dy);
}
代码示例来源:origin: fossasia/neurolab-desktop
graphics.copyArea(0, 0, windowWidth-sideBorder-numSamples, windowHeight+additionalFeedbackHeight, numSamples, 0);
graphics.setColor(Color.BLACK);
graphics.fillRect(0, 30 + (30+binHeight)*bins, numSamples, binHeight + additionalFeedbackHeight);
代码示例来源:origin: apache/cloudstack
private void handleCopyRect(CopyRectOrder order, ByteBuffer buf) {
// Copy image
canvas.getOfflineGraphics().copyArea(order.srcX, order.srcY, order.width, order.height, order.x - order.srcX, order.y - order.srcY);
// Request update of repainted area
canvas.updateFrameBuffer(order.x, order.y, order.width, order.height);
canvas.repaint(order.x, order.y, order.width, order.height);
}
代码示例来源:origin: fossasia/neurolab-desktop
channelGraphics[c].copyArea(0, 0, windowWidth-sideBorder-1, displayHeight, 1, 0);
channelGraphics[c+(numChannels*p)].copyArea(0, 0, windowWidth-sideBorder-1, displayHeight, 1, 0);
代码示例来源:origin: apache/cloudstack
@Override
public void handleData(ByteBuffer buf, Link link) {
if (buf == null)
return;
if (verbose)
System.out.println("[" + this + "] INFO: Data received: " + buf + ".");
int x = (Integer)buf.getMetadata(TARGET_X);
int y = (Integer)buf.getMetadata(TARGET_Y);
int width = (Integer)buf.getMetadata(WIDTH);
int height = (Integer)buf.getMetadata(HEIGHT);
int srcX = (Integer)buf.getMetadata(SRC_X);
int srcY = (Integer)buf.getMetadata(SRC_Y);
buf.unref();
// Copy image
canvas.getOfflineGraphics().copyArea(srcX, srcY, width, height, x - srcX, y - srcY);
// Request update of repainted area
canvas.repaint(x, y, width, height);
}
代码示例来源:origin: org.apache.pdfbox/pdfbox
@Override
public void copyArea(int x, int y, int width, int height, int dx, int dy)
{
groupG2D.copyArea(x, y, width, height, dx, dy);
alphaG2D.copyArea(x, y, width, height, dx, dy);
}
代码示例来源:origin: com.samskivert/samskivert
@Override
public void copyArea (int x, int y, int w, int h, int a, int b)
{
// was seeing errors here, Don't worry about failure on copy
try {
_copy.copyArea(x, y, w, h, a, b);
} catch (Error e) {
}
_primary.copyArea(x, y, w, h, a, b);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-graphics
@Override
public void copyArea(int x, int y, int width, int height, int dx, int dy) {
delegate.copyArea(x, y, width, height, dx, dy);
}
代码示例来源:origin: net.java.openjdk.cacio/cacio-shared
@Override
public void copyArea(int x, int y, int width, int height, int dx, int dy) {
wrapped.copyArea(x, y, width, height, dx, dy);
}
代码示例来源:origin: com.haulmont.thirdparty/poi
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
System.out.println( "copyArea(int,int,int,int):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
g2D.copyArea( x, y, width, height, dx, dy );
}
代码示例来源:origin: org.openmicroscopy/ome-poi
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
System.out.println( "copyArea(int,int,int,int):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
g2D.copyArea( x, y, width, height, dx, dy );
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
System.out.println( "copyArea(int,int,int,int):" );
System.out.println( "x = " + x );
System.out.println( "y = " + y );
System.out.println( "width = " + width );
System.out.println( "height = " + height );
g2D.copyArea( x, y, width, height, dx, dy );
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
getG2D().copyArea(x,y,width,height,dx,dy);
}
代码示例来源:origin: org.openmicroscopy/ome-poi
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
getG2D().copyArea(x,y,width,height,dx,dy);
}
代码示例来源:origin: com.haulmont.thirdparty/poi
public void copyArea(int x, int y, int width, int height,
int dx, int dy)
{
getG2D().copyArea(x,y,width,height,dx,dy);
}
代码示例来源:origin: org.scijava/j3dcore
@Override
public final void copyArea(int x, int y, int width, int height,
int dx, int dy) {
validate(x+dx, y+dy, x+dx+width, y+dy+height);
offScreenGraphics2D.copyArea(x, y, width, height, dx, dy);
}
代码示例来源:origin: ev3dev-lang-java/ev3dev-lang-java
@Override
public void copyArea(int sx, int sy,
int w, int h,
int x, int y, int anchor) {
x = adjustX(x, w, anchor);
y = adjustY(y, h, anchor);
g2d.copyArea(sx, sy, w, h, x, y);
}
内容来源于网络,如有侵权,请联系作者删除!