Lines Matching refs:crop
82 * <p>Input: {@link Intent#getData} is the URI of the image to crop and set as wallpaper.
83 * <p>Output: RESULT_OK if user decided to crop/set the wallpaper, RESULT_CANCEL otherwise
395 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image;
397 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image;
456 Log.w(TAG, "crop has bad values for full size image");
472 Bitmap crop = null;
474 // Do region decoding to get crop bitmap
479 crop = decoder.decodeRegion(roundedTrueCrop, options);
483 if (crop == null) {
484 // BitmapRegionDecoder has failed, try to crop in-memory
495 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left,
501 if (crop == null) {
508 (crop.getWidth() != outWidth || crop.getHeight() != outHeight)) {
510 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight());
519 c.drawBitmap(crop, m, p);
520 crop = tmp;
524 return new BitmapDrawable(resources, crop);
532 // Get a crop rect that will fit this
683 // fallback crop activity