Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DCropRectRotator.java34 public static Rect rotateCropRectForExifOrientation(Point dimensions, Rect srcRect, in rotateCropRectForExifOrientation() argument
39 return new Rect(srcRect); in rotateCropRectForExifOrientation()
41 return new Rect(srcRect.top, dimensions.x - srcRect.right, srcRect.bottom, in rotateCropRectForExifOrientation()
42 dimensions.x - srcRect.left); in rotateCropRectForExifOrientation()
44 return new Rect(dimensions.x - srcRect.right, dimensions.y - srcRect.bottom, in rotateCropRectForExifOrientation()
45 dimensions.x - srcRect.left, dimensions.y - srcRect.top); in rotateCropRectForExifOrientation()
47 … return new Rect(dimensions.y - srcRect.bottom, srcRect.left, dimensions.y - srcRect.top, in rotateCropRectForExifOrientation()
48 srcRect.right); in rotateCropRectForExifOrientation()
51 return new Rect(srcRect); in rotateCropRectForExifOrientation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DIconFactory.java86 Rect srcRect = null; in drawIcon() local
89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); in drawIcon()
102 srcRect = new Rect(); in drawIcon()
103 rec.roundOut(srcRect); in drawIcon()
106 canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG)); in drawIcon()
/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java672 RectF srcRect = new RectF( in precomputeThumbnailPaint() local
679 shaderMatrix.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.FILL); in precomputeThumbnailPaint()
683 srcRect.width() / 2, in precomputeThumbnailPaint()
684 srcRect.height() / 2); in precomputeThumbnailPaint()
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java234 Rect srcRect = mCrop.getCropRect(); in onSaveClicked() local
237 int dx = (srcRect.width() - dstRect.width()) / 2; in onSaveClicked()
238 int dy = (srcRect.height() - dstRect.height()) / 2; in onSaveClicked()
241 srcRect.inset(Math.max(0, dx), Math.max(0, dy)); in onSaveClicked()
247 canvas.drawBitmap(mBitmap, srcRect, dstRect, null); in onSaveClicked()
DGridViewSpecial.java1123 Rect srcRect = new Rect(0, 0, w, mBlockHeight); in doDraw() local
1124 Rect dstRect = new Rect(srcRect); in doDraw()
1126 canvas.drawBitmap(mBitmap, srcRect, dstRect, null); in doDraw()