Commit 927e55be by Lee Jaebin

PDFタップ時、x, yの座標変換の計算処理の整理

parent 1036f796
......@@ -654,8 +654,8 @@ public class ZoomRelativeLayout extends RelativeLayout {
float scaleX = (float)mAuthoringPageSize.width / getScaledPDFWidth(pdfMatrix[Matrix.MSCALE_X]);
float scaleY = (float)mAuthoringPageSize.height / getScaledPDFHeight(pdfMatrix[Matrix.MSCALE_Y]);
float pdfX = (x * scaleX) - (pdfMatrix[Matrix.MTRANS_X] * scaleX);
float pdfY = (y * scaleY) - (pdfMatrix[Matrix.MTRANS_Y] * scaleY);
float pdfX = (x - pdfMatrix[Matrix.MTRANS_X]) * scaleX;
float pdfY = (y - pdfMatrix[Matrix.MTRANS_Y]) * scaleY;
return new PointF(pdfX, pdfY);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment