Searched refs:cropBounds (Results 1 – 5 of 5) sorted by relevance
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 66 public Bitmap readCroppedBitmap(RectF cropBounds, int outWidth, int outHeight, int rotation) { in readCroppedBitmap() argument 82 cropBounds.roundOut(roundedTrueCrop); in readCroppedBitmap() 83 cropBounds.set(roundedTrueCrop); in readCroppedBitmap() 90 cropBounds.offset(-rotatedBounds[0]/2, -rotatedBounds[1]/2); in readCroppedBitmap() 91 inverseRotateMatrix.mapRect(cropBounds); in readCroppedBitmap() 92 cropBounds.offset(bounds.x/2, bounds.y/2); in readCroppedBitmap() 95 cropBounds.roundOut(roundedTrueCrop); in readCroppedBitmap() 143 cropBounds.left /= scaleDownSampleSize; in readCroppedBitmap() 144 cropBounds.top /= scaleDownSampleSize; in readCroppedBitmap() 145 cropBounds.bottom /= scaleDownSampleSize; in readCroppedBitmap() [all …]
|
D | CropAndSetWallpaperTask.java | 55 RectF cropBounds, int rotation, int outWidth, int outHeight, in CropAndSetWallpaperTask() argument 60 mCropBounds = cropBounds; in CropAndSetWallpaperTask()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 115 public static void drawWallpaperSelectionFrame(Canvas canvas, RectF cropBounds, float spotX, in drawWallpaperSelectionFrame() argument 117 float sx = cropBounds.width() * spotX; in drawWallpaperSelectionFrame() 118 float sy = cropBounds.height() * spotY; in drawWallpaperSelectionFrame() 119 float cx = cropBounds.centerX(); in drawWallpaperSelectionFrame() 120 float cy = cropBounds.centerY(); in drawWallpaperSelectionFrame() 127 canvas.clipRect(cropBounds); in drawWallpaperSelectionFrame()
|
D | CropActivity.java | 322 RectF cropBounds, RectF photoBounds, RectF currentBitmapBounds, String format, in startBitmapIO() argument 324 if (cropBounds == null || photoBounds == null || currentBitmap == null in startBitmapIO() 326 || cropBounds.width() == 0 || cropBounds.height() == 0 || photoBounds.width() == 0 in startBitmapIO() 339 BitmapIOTask ioTask = new BitmapIOTask(sourceUri, destUri, format, flags, cropBounds, in startBitmapIO() 385 RectF cropBounds, RectF photoBounds, RectF originalBitmapBounds, int rotation, in BitmapIOTask() argument 392 mCrop = cropBounds; in BitmapIOTask() 617 protected static Bitmap getCroppedImage(Bitmap image, RectF cropBounds, RectF photoBounds) { in getCroppedImage() argument 619 RectF crop = CropMath.getScaledCropBounds(cropBounds, photoBounds, imageBounds); in getCroppedImage()
|
D | CropMath.java | 217 public static RectF getScaledCropBounds(RectF cropBounds, RectF photoBounds, in getScaledCropBounds() argument 221 RectF trueCrop = new RectF(cropBounds); in getScaledCropBounds()
|