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

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

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

AffineTransform.quadrantRotate介绍

暂无

代码示例

代码示例来源:origin: rkalla/imgscalr

  1. tx.quadrantRotate(1);
  2. tx.quadrantRotate(3);
  3. break;
  4. tx.quadrantRotate(2);
  5. break;

代码示例来源:origin: org.apache.poi/poi

  1. txs2.quadrantRotate(1);
  2. txs2.translate(-centerX, -centerY);
  3. txs2.concatenate(tx);
  4. txs2.quadrantRotate(3);
  5. txs2.translate(-centerX, -centerY);

代码示例来源:origin: haraldk/TwelveMonkeys

  1. case TIFFExtension.ORIENTATION_BOTRIGHT:
  2. orientationTransform.quadrantRotate(2, cW, cH);
  3. break;
  4. case TIFFExtension.ORIENTATION_BOTLEFT:
  5. orientationTransform.translate(cW, cH);
  6. orientationTransform.scale(-1, 1);
  7. orientationTransform.quadrantRotate(1);
  8. orientationTransform.translate(-cW, -cH);
  9. flipExtends = true;
  10. case TIFFExtension.ORIENTATION_RIGHTTOP:
  11. orientationTransform.quadrantRotate(1, cW, cH);
  12. flipExtends = true;
  13. break;
  14. orientationTransform.translate(cW, cH);
  15. orientationTransform.scale(1, -1);
  16. orientationTransform.quadrantRotate(1);
  17. orientationTransform.translate(-cW, -cH);
  18. flipExtends = true;
  19. orientationTransform.quadrantRotate(3, cW, cH);
  20. flipExtends = true;
  21. break;

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

  1. /**
  2. * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
  3. */
  4. @Override
  5. public final void quadrantRotate(int numquadrants, double anchorx, double anchory) {
  6. checkPermission();
  7. super.quadrantRotate(numquadrants, anchorx, anchory);
  8. }

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

  1. /**
  2. * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
  3. */
  4. @Override
  5. public final void quadrantRotate(int numquadrants) {
  6. checkPermission();
  7. super.quadrantRotate(numquadrants);
  8. }

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

  1. /**
  2. * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
  3. */
  4. @Override
  5. public final void quadrantRotate(int numquadrants, double anchorx, double anchory) {
  6. checkPermission();
  7. super.quadrantRotate(numquadrants, anchorx, anchory);
  8. }

代码示例来源:origin: lbalazscs/Pixelitor

  1. @Override
  2. public AffineTransform createImageTX(ImageLayer layer) {
  3. // rotate, then translate to compensate
  4. AffineTransform at = AffineTransform.getTranslateInstance(
  5. layer.getImage().getHeight(), 0);
  6. at.quadrantRotate(1);
  7. return at;
  8. }
  9. }, ANGLE_180(180, "Rotate 180\u00B0") {

代码示例来源:origin: lbalazscs/Pixelitor

  1. @Override
  2. public AffineTransform createImageTX(ImageLayer layer) {
  3. // rotate, then translate to compensate
  4. AffineTransform at = AffineTransform.getTranslateInstance(
  5. 0, layer.getImage().getWidth());
  6. at.quadrantRotate(3);
  7. return at;
  8. }
  9. };

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

  1. /**
  2. * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
  3. */
  4. @Override
  5. public final void quadrantRotate(int numquadrants) {
  6. checkPermission();
  7. super.quadrantRotate(numquadrants);
  8. }

代码示例来源:origin: lbalazscs/Pixelitor

  1. @Override
  2. public AffineTransform createCanvasTX(Canvas canvas) {
  3. // rotate, then translate to compensate
  4. AffineTransform at = AffineTransform.getTranslateInstance(
  5. canvas.getImHeight(), 0);
  6. at.quadrantRotate(1);
  7. return at;
  8. }

代码示例来源:origin: lbalazscs/Pixelitor

  1. @Override
  2. public AffineTransform createCanvasTX(Canvas canvas) {
  3. // rotate, then translate to compensate
  4. AffineTransform at = AffineTransform.getTranslateInstance(
  5. 0, canvas.getImWidth());
  6. at.quadrantRotate(3);
  7. return at;
  8. }

代码示例来源:origin: ev3dev-lang-java/ev3dev-lang-java

  1. private BufferedImage java_lejos_flip(BufferedImage in, BufferedImage out) {
  2. AffineTransform tf = new AffineTransform();
  3. tf.quadrantRotate(1);
  4. tf.scale(-1.0, +1.0);
  5. AffineTransformOp op = new AffineTransformOp(tf, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
  6. return op.filter(in, out);
  7. }

代码示例来源:origin: lbalazscs/Pixelitor

  1. @Override
  2. public AffineTransform createCanvasTX(Canvas canvas) {
  3. // rotate, then translate to compensate
  4. AffineTransform at = AffineTransform.getTranslateInstance(
  5. canvas.getImWidth(), canvas.getImHeight());
  6. at.quadrantRotate(2);
  7. return at;
  8. }

代码示例来源:origin: com.twelvemonkeys.contrib/contrib

  1. case TIFFExtension.ORIENTATION_BOTRIGHT:
  2. orientationTransform.quadrantRotate(2, cW, cH);
  3. break;
  4. case TIFFExtension.ORIENTATION_BOTLEFT:
  5. orientationTransform.translate(cW, cH);
  6. orientationTransform.scale(-1, 1);
  7. orientationTransform.quadrantRotate(1);
  8. orientationTransform.translate(-cW, -cH);
  9. flipExtends = true;
  10. case TIFFExtension.ORIENTATION_RIGHTTOP:
  11. orientationTransform.quadrantRotate(1, cW, cH);
  12. flipExtends = true;
  13. break;
  14. orientationTransform.translate(cW, cH);
  15. orientationTransform.scale(1, -1);
  16. orientationTransform.quadrantRotate(1);
  17. orientationTransform.translate(-cW, -cH);
  18. flipExtends = true;
  19. orientationTransform.quadrantRotate(3, cW, cH);
  20. flipExtends = true;
  21. break;

代码示例来源:origin: ev3dev-lang-java/ev3dev-lang-java

  1. case TRANS_MIRROR_ROT90:
  2. tf.scale(-1.0, 1.0);
  3. tf.quadrantRotate(1);
  4. h = w;
  5. w = h0;
  6. case TRANS_MIRROR_ROT180:
  7. tf.scale(-1.0, 1.0);
  8. tf.quadrantRotate(2);
  9. break;
  10. case TRANS_MIRROR_ROT270:
  11. tf.scale(-1.0, 1.0);
  12. tf.quadrantRotate(3);
  13. h = w;
  14. w = h0;
  15. break;
  16. case TRANS_ROT90:
  17. tf.quadrantRotate(1);
  18. h = w;
  19. w = h0;
  20. break;
  21. case TRANS_ROT180:
  22. tf.quadrantRotate(2);
  23. break;
  24. case TRANS_ROT270:
  25. tf.quadrantRotate(3);
  26. h = w;
  27. w = h0;

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  1. txs2.quadrantRotate(1);
  2. txs2.translate(-centerX, -centerY);
  3. txs2.concatenate(tx);
  4. txs2.quadrantRotate(3);
  5. txs2.translate(-centerX, -centerY);

代码示例来源:origin: stackoverflow.com

  1. at.quadrantRotate(quad, img.getWidth() / 2, img.getHeight() / 2);

代码示例来源:origin: igvteam/igv

  1. rotateTransform.quadrantRotate(-1);
  2. ((Graphics2D) g).transform(rotateTransform);
  3. g.drawString(label, -strX, 20);

相关文章