java.awt.geom.AffineTransform.setToShear()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中java.awt.geom.AffineTransform.setToShear()方法的一些代码示例,展示了AffineTransform.setToShear()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AffineTransform.setToShear()方法的具体详情如下:
包路径:java.awt.geom.AffineTransform
类名称:AffineTransform
方法名:setToShear

AffineTransform.setToShear介绍

暂无

代码示例

代码示例来源:origin: plantuml/plantuml

private void exportDiagramInternalMjpeg(OutputStream os) throws IOException {
  final File f = new File("c:/test.avi");
  final int nb = 150;
  final double framerate = 30;
  final MJPEGGenerator m = new MJPEGGenerator(f, 640, 480, framerate, nb);
  for (int i = 0; i < nb; i++) {
    final AffineTransform at = new AffineTransform();
    final double coef = (nb - 1 - i) * 1.0 / nb;
    at.setToShear(coef, coef);
    final ByteArrayOutputStream baos = new ByteArrayOutputStream();
    // exportDiagramTOxxBEREMOVED(baos, null, 0, new FileFormatOption(FileFormat.PNG, at));
    baos.close();
    final BufferedImage im = ImageIO.read(new ByteArrayInputStream(baos.toByteArray()));
    m.addImage(im);
  }
  m.finishAVI();
}

代码示例来源:origin: geotools/geotools

/** Checks for {@linkplain #checkPermission permission} before setting this transform. */
@Override
public void setToShear(double shx, double shy) {
  checkPermission();
  super.setToShear(shx, shy);
}

代码示例来源:origin: org.apache.sis.core/sis-referencing

/**
 * Checks for {@linkplain #checkPermission() permission} before setting this transform.
 */
@Override
public final void setToShear(double shx, double shy) {
  checkPermission();
  super.setToShear(shx, shy);
}

代码示例来源:origin: apache/sis

/**
 * Checks for {@linkplain #checkPermission() permission} before setting this transform.
 */
@Override
public final void setToShear(double shx, double shy) {
  checkPermission();
  super.setToShear(shx, shy);
}

代码示例来源:origin: io.leopard.thirdparty/jcaptcha-core

public void visit(Glyphs gv, Rectangle2D backroundBounds) {

    for(int i=0;i<gv.size();i++){
      AffineTransform af = new AffineTransform();
      af.setToShear(maxShearX*myRandom.nextGaussian(),maxShearY*myRandom.nextGaussian());
      gv.addAffineTransform(i, af);
    }
  }
}

代码示例来源:origin: net.sourceforge.plantuml/plantuml

private void exportDiagramInternalMjpeg(OutputStream os) throws IOException {
  final File f = new File("c:/test.avi");
  final int nb = 150;
  final double framerate = 30;
  final MJPEGGenerator m = new MJPEGGenerator(f, 640, 480, framerate, nb);
  for (int i = 0; i < nb; i++) {
    final AffineTransform at = new AffineTransform();
    final double coef = (nb - 1 - i) * 1.0 / nb;
    at.setToShear(coef, coef);
    final ByteArrayOutputStream baos = new ByteArrayOutputStream();
    // exportDiagramTOxxBEREMOVED(baos, null, 0, new FileFormatOption(FileFormat.PNG, at));
    baos.close();
    final BufferedImage im = ImageIO.read(new ByteArrayInputStream(baos.toByteArray()));
    m.addImage(im);
  }
  m.finishAVI();
}

代码示例来源:origin: com.barchart.kitfox/kitfox-svg-core

retXform.setToShear(Math.toRadians(terms[0]), 0.0);
retXform.setToShear(0.0, Math.toRadians(terms[0]));

代码示例来源:origin: com.barchart.kitfox/kitfox-svg-core

xform.setToShear(Math.toRadians(x), 0.0);
break;
xform.setToShear(0.0, Math.toRadians(y));
break;

代码示例来源:origin: com.metsci.ext.com.kitfox.svg/svg-salamander

retXform.setToShear(Math.toRadians(terms[0]), 0.0);
} else if (function.equals("skewy"))
  retXform.setToShear(0.0, Math.toRadians(terms[0]));
} else

代码示例来源:origin: guru.nidi.com.kitfox/svgSalamander

retXform.setToShear(Math.toRadians(terms[0]), 0.0);
} else if (function.equals("skewy"))
  retXform.setToShear(0.0, Math.toRadians(terms[0]));
} else

代码示例来源:origin: blackears/svgSalamander

retXform.setToShear(Math.toRadians(terms[0]), 0.0);
} else if (function.equals("skewy"))
  retXform.setToShear(0.0, Math.toRadians(terms[0]));
} else

代码示例来源:origin: guru.nidi.com.kitfox/svgSalamander

xform.setToShear(Math.toRadians(x), 0.0);
break;
xform.setToShear(0.0, Math.toRadians(y));
break;

代码示例来源:origin: com.metsci.ext.com.kitfox.svg/svg-salamander

xform.setToShear(Math.toRadians(x), 0.0);
break;
xform.setToShear(0.0, Math.toRadians(y));
break;

代码示例来源:origin: blackears/svgSalamander

xform.setToShear(Math.toRadians(x), 0.0);
break;
xform.setToShear(0.0, Math.toRadians(y));
break;

相关文章