本文整理了Java中org.apache.pdfbox.util.Matrix.getValue()
方法的一些代码示例,展示了Matrix.getValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getValue()
方法的具体详情如下:
包路径:org.apache.pdfbox.util.Matrix
类名称:Matrix
方法名:getValue
[英]This will get a matrix value at some point.
[中]这将在某个时刻得到一个矩阵值。
代码示例来源:origin: io.committed.krill/krill
/**
* Checks if is italic.
*
* @param font
* the font
* @param matrix
* the matrix
* @return true, if is italic
*/
private static boolean isItalic(PDFont font, Matrix matrix) {
String lowerCaseName = font.getName().toLowerCase(Locale.ROOT);
boolean italicName = lowerCaseName.contains("italic") || lowerCaseName.contains("oblique");
boolean shearItalic = Math.abs(matrix.getValue(1, 0)) > 0.0f;
PDFontDescriptor fontDescriptor = font.getFontDescriptor();
boolean declaredItalic = fontDescriptor.isItalic();
return declaredItalic || italicName || shearItalic;
}
代码示例来源:origin: tamirhassan/pdfxtk
ctm.getValue(0,0)/width,
ctm.getValue(0,1),
ctm.getValue(1,0),
ctm.getValue(1,1)/height,
ctm.getValue(2,0),
ctm.getValue(2,1)
);
代码示例来源:origin: tamirhassan/pdfxtk
translationParams.setValue(2,1, -translationParams.getValue( 2,1 ));
translationMatrix = Matrix.getTranslatingInstance(0, (float)pageSize.getHeight()-height*scalingParams.getYScale() );
translationParams = translationParams.multiply( translationMatrix );
scalingParams.getValue( 0,0), 0,
0, scalingParams.getValue( 1, 1),
translationParams.getValue(2,0), translationParams.getValue( 2,1 )
);
代码示例来源:origin: stackoverflow.com
textPos.setValue(2, 1, 0);
textPos.setValue(0, 1, (-1)*textPos.getValue(0, 1));
textPos.setValue(1, 0, (-1)*textPos.getValue(1, 0));
AffineTransform at = textPos.createAffineTransform();
PDMatrix fontMatrix = font.getFontMatrix();
代码示例来源:origin: asciidoctor/asciidoctorj
float angle = (float)Math.acos(ctmNew.getValue(0, 0)/ctmNew.getXScale());
if (ctmNew.getValue(0, 1) < 0 && ctmNew.getValue(1, 0) > 0) {
angle = (-1)*angle;
ctmNew.setValue(2, 0, (float)(ctmNew.getXPosition() - Math.sin(angle)*yScaling));
ctmNew.setValue(0, 1, (-1)*ctmNew.getValue(0, 1));
ctmNew.setValue(1, 0, (-1)*ctmNew.getValue(1, 0));
代码示例来源:origin: tamirhassan/pdfxtk
float x = trm.getValue(2,0);
float y = trm.getValue(2,1);
if( pageRotation == 0 )
内容来源于网络,如有侵权,请联系作者删除!