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

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

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

AffineTransform.quadrantRotate介绍

暂无

代码示例

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

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

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

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

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

case TIFFExtension.ORIENTATION_BOTRIGHT:
  orientationTransform.quadrantRotate(2, cW, cH);
  break;
case TIFFExtension.ORIENTATION_BOTLEFT:
  orientationTransform.translate(cW, cH);
  orientationTransform.scale(-1, 1);
  orientationTransform.quadrantRotate(1);
  orientationTransform.translate(-cW, -cH);
  flipExtends = true;
case TIFFExtension.ORIENTATION_RIGHTTOP:
  orientationTransform.quadrantRotate(1, cW, cH);
  flipExtends = true;
  break;
  orientationTransform.translate(cW, cH);
  orientationTransform.scale(1, -1);
  orientationTransform.quadrantRotate(1);
  orientationTransform.translate(-cW, -cH);
  flipExtends = true;
  orientationTransform.quadrantRotate(3, cW, cH);
  flipExtends = true;
  break;

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

/**
 * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
 */
@Override
public final void quadrantRotate(int numquadrants, double anchorx, double anchory) {
  checkPermission();
  super.quadrantRotate(numquadrants, anchorx, anchory);
}

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

/**
 * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
 */
@Override
public final void quadrantRotate(int numquadrants) {
  checkPermission();
  super.quadrantRotate(numquadrants);
}

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

/**
 * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
 */
@Override
public final void quadrantRotate(int numquadrants, double anchorx, double anchory) {
  checkPermission();
  super.quadrantRotate(numquadrants, anchorx, anchory);
}

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

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

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

@Override
  public AffineTransform createImageTX(ImageLayer layer) {
    // rotate, then translate to compensate
    AffineTransform at = AffineTransform.getTranslateInstance(
        0, layer.getImage().getWidth());
    at.quadrantRotate(3);
    return at;
  }
};

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

/**
 * Checks for {@linkplain #checkPermission() permission} before rotating this transform.
 */
@Override
public final void quadrantRotate(int numquadrants) {
  checkPermission();
  super.quadrantRotate(numquadrants);
}

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

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

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

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

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

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

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

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

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

case TIFFExtension.ORIENTATION_BOTRIGHT:
  orientationTransform.quadrantRotate(2, cW, cH);
  break;
case TIFFExtension.ORIENTATION_BOTLEFT:
  orientationTransform.translate(cW, cH);
  orientationTransform.scale(-1, 1);
  orientationTransform.quadrantRotate(1);
  orientationTransform.translate(-cW, -cH);
  flipExtends = true;
case TIFFExtension.ORIENTATION_RIGHTTOP:
  orientationTransform.quadrantRotate(1, cW, cH);
  flipExtends = true;
  break;
  orientationTransform.translate(cW, cH);
  orientationTransform.scale(1, -1);
  orientationTransform.quadrantRotate(1);
  orientationTransform.translate(-cW, -cH);
  flipExtends = true;
  orientationTransform.quadrantRotate(3, cW, cH);
  flipExtends = true;
  break;

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

case TRANS_MIRROR_ROT90:
  tf.scale(-1.0, 1.0);
  tf.quadrantRotate(1);
  h = w;
  w = h0;
case TRANS_MIRROR_ROT180:
  tf.scale(-1.0, 1.0);
  tf.quadrantRotate(2);
  break;
case TRANS_MIRROR_ROT270:
  tf.scale(-1.0, 1.0);
  tf.quadrantRotate(3);
  h = w;
  w = h0;
  break;
case TRANS_ROT90:
  tf.quadrantRotate(1);
  h = w;
  w = h0;
  break;
case TRANS_ROT180:
  tf.quadrantRotate(2);
  break;
case TRANS_ROT270:
  tf.quadrantRotate(3);
  h = w;
  w = h0;

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

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

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

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

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

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

相关文章