本文整理了Java中java.awt.geom.AffineTransform.shear()
方法的一些代码示例,展示了AffineTransform.shear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AffineTransform.shear()
方法的具体详情如下:
包路径:java.awt.geom.AffineTransform
类名称:AffineTransform
方法名:shear
暂无
代码示例来源:origin: org.apache.poi/poi
/**
* Concatenates the current <code>Graphics2D</code>
* <code>Transform</code> with a shearing transform.
* Subsequent renderings are sheared by the specified
* multiplier relative to the previous position.
* This is equivalent to calling <code>transform(SH)</code>, where SH
* is an <code>AffineTransform</code> represented by the following
* matrix:
* <pre>
* [ 1 shx 0 ]
* [ shy 1 0 ]
* [ 0 0 1 ]
* </pre>
* @param shx the multiplier by which coordinates are shifted in
* the positive X axis direction as a function of their Y coordinate
* @param shy the multiplier by which coordinates are shifted in
* the positive Y axis direction as a function of their X coordinate
*/
public void shear(double shx, double shy){
_transform.shear(shx, shy);
}
代码示例来源:origin: org.apache.poi/poi
public void shear(double d, double d1)
{
getTrans().shear(d, d1);
}
代码示例来源:origin: geotools/geotools
/** Checks for {@linkplain #checkPermission permission} before shearing this transform. */
@Override
public void shear(double shx, double shy) {
checkPermission();
super.shear(shx, shy);
}
代码示例来源:origin: com.itextpdf/itextpdf
/**
* @see Graphics2D#shear(double, double)
*/
@Override
public void shear(double shx, double shy) {
transform.shear(shx, shy);
}
代码示例来源:origin: geotools/geotools
100 * random.nextDouble());
transform.scale(2 * random.nextDouble(), 2 * random.nextDouble());
transform.shear(2 * random.nextDouble(), 2 * random.nextDouble());
transform.translate(100 * random.nextDouble(), 100 * random.nextDouble());
compareTransforms(
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* @see Graphics2D#shear(double, double)
*/
public void shear(double shx, double shy) {
transform.shear(shx, shy);
}
代码示例来源:origin: pentaho/pentaho-reporting
/**
* @see Graphics2D#shear(double, double)
*/
@Override
public void shear( final double shx, final double shy ) {
transform.shear( shx, shy );
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* @see Graphics2D#shear(double, double)
*/
public void shear(double shx, double shy) {
transform.shear(shx, shy);
}
代码示例来源:origin: org.jaitools/jt-utils
@Override
public void shear(double shx, double shy) {
transform.shear(shx, shy);
}
代码示例来源:origin: com.googlecode.jaitools/jt-utils
@Override
public void shear(double shx, double shy) {
transform.shear(shx, shy);
}
代码示例来源:origin: stackoverflow.com
double sa_x = 100, sa_y = 100; // or whatever
AffineTransform at = new AffineTransform();
// S3: Move back to original origin
at.translate(sa_x, sa_y);
// S2: Shear
at.shear(1, 0);
// S1: Set origin
at.translate(-sa_x, -sa_y);
代码示例来源:origin: org.apache.sis.core/sis-referencing
/**
* Checks for {@linkplain #checkPermission() permission} before shearing this transform.
*/
@Override
public final void shear(double shx, double shy) {
checkPermission();
super.shear(shx, shy);
}
代码示例来源:origin: org.piccolo2d/piccolo2d-swt
/** {@inheritDoc} */
public void shear(final double shx, final double shy) {
transform.shear(shx, shy);
updateSWTTransform();
}
代码示例来源:origin: apache/sis
/**
* Checks for {@linkplain #checkPermission() permission} before shearing this transform.
*/
@Override
public final void shear(double shx, double shy) {
checkPermission();
super.shear(shx, shy);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
public void shear(double d, double d1)
{
getTrans().shear(d, d1);
}
代码示例来源:origin: com.harium.propan/propan-jogl
@Override
public void shear(double shx, double shy) {
getTransform0().shear(shx, shy);
dirtyMatrix = true;
}
代码示例来源:origin: com.sangupta/jopensurf
public static BufferedImage getTransformedImage(BufferedImage image,double scaleX,double scaleY,double shearX,double shearY){
AffineTransform transform = new AffineTransform();
if ( scaleX > 0 && scaleY > 0 )
transform.scale(scaleX, scaleY);
if ( shearX > 0 && shearY > 0 )
transform.shear(shearX, shearY);
AffineTransformOp op = new AffineTransformOp(transform,AffineTransformOp.TYPE_BILINEAR);
BufferedImage dest = new BufferedImage(image.getWidth(),image.getHeight(),image.getType());
op.filter(image, dest);
return dest;
}
代码示例来源:origin: org.fudaa.framework.fudaa/fudaa-common
private void initTransform(Rectangle _bounds, AffineTransform _transform) {
double centerY = _bounds.getCenterY();
double centerX = _bounds.getCenterX();
_transform.translate(centerX, centerY);
_transform.shear(shearX_, shearY_);
_transform.rotate(rotation_);
_transform.translate(-centerX, -centerY);
}
代码示例来源:origin: brandonborkholder/glg2d
@Override
public void shear(double shx, double shy) {
getTransform0().shear(shx, shy);
flushTransformToOpenGL();
}
代码示例来源:origin: eseifert/vectorgraphics2d
@Override
public void shear(double shx, double shy) {
if (shx == 0.0 && shy == 0.0) {
return;
}
AffineTransform txNew = getTransform();
txNew.shear(shx, shy);
emit(new ShearCommand(shx, shy));
state.setTransform(txNew);
}
内容来源于网络,如有侵权,请联系作者删除!