Home
last modified time | relevance | path

Searched refs:displayScale (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java123 final float displayScale; in renderPage() local
127 displayScale = Math.min((float) bitmapWidth / srcWidthPts, in renderPage()
131 displayScale = (float) bitmapHeight / dstHeightPts; in renderPage()
133 displayScale = (float) bitmapWidth / dstWidthPts; in renderPage()
136 matrix.postScale(displayScale, displayScale); in renderPage()
141 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0); in renderPage()
151 clip.left = (int) (paddingLeftPts * displayScale); in renderPage()
152 clip.top = (int) (paddingTopPts * displayScale); in renderPage()
153 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage()
154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage()