/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | BitmapUtil.java | 35 * Does not crop to fit the hinted dimensions. 62 * Also applies a center-crop a la {@link android.widget.ImageView.ScaleType#CENTER_CROP}. 75 LogUtils.w(TAG, t, "BitmapUtils unable to crop image"); 81 * Returns a new Bitmap copy with a center-crop effect a la 92 return crop(src, w, h, 0.5f, 0.5f); 96 * Returns a new Bitmap copy with a crop effect depending on the crop anchor given. 0.5f is like 97 * {@link android.widget.ImageView.ScaleType#CENTER_CROP}. The crop anchor will be be nudged 117 * @param horizontalCenterPercent determines which part of the src to crop from. Range from 0 120 * @param verticalCenterPercent determines which part of the src to crop fro 126 public static Bitmap crop(final Bitmap src, final int w, final int h, method in class:BitmapUtil [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | BoundedRect.java | 16 package com.android.gallery3d.filtershow.crop;
|
H A D | CropDrawingUtils.java | 17 package com.android.gallery3d.filtershow.crop;
|
H A D | CropMath.java | 17 package com.android.gallery3d.filtershow.crop; 213 * @param photoBounds original bounds containing crop bounds 214 * @param displayBounds final bounds for crop 215 * @return the stretched/scaled/translated crop bounds that fit within displayBounds
|
H A D | CropExtras.java | 17 package com.android.gallery3d.filtershow.crop;
|
H A D | CropObject.java | 17 package com.android.gallery3d.filtershow.crop; 192 RectF crop = mBoundedRect.getInner(); 205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; 208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; 211 dx = Math.max(crop.right + dX, crop [all...] |
H A D | CropView.java | 17 package com.android.gallery3d.filtershow.crop; 116 RectF crop = mCropObj.getInnerBounds(); 118 if (crop != newCropBounds || containing != newPhotoBounds 189 Log.w(LOGTAG, "crop reset called"); 302 // If crop object doesn't exist, create it and update it from master 358 // Draw crop rect and markers
|
H A D | CropActivity.java | 17 package com.android.gallery3d.filtershow.crop; 310 RectF crop = getBitmapCrop(photo); 311 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop, 425 // Set extra for crop bounds 464 // Find crop bounds (scaled to original image size) 467 Log.w(LOGTAG, "cannot find crop for full size image"); 475 Log.w(LOGTAG, "crop has bad values for full size image"); 488 Bitmap crop = null; 490 // Do region decoding to get crop bitmap 493 crop [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | FilterCropRepresentation.java | 37 public FilterCropRepresentation(RectF crop) { argument 44 setTextId(R.string.crop); 46 setCrop(crop); 67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; 68 if (mCrop.bottom != crop.mCrop.bottom 69 || mCrop.left != crop.mCrop.left 70 || mCrop.right != crop.mCrop.right 71 || mCrop.top != crop.mCrop.top) { 85 public void setCrop(RectF crop) { argument 86 if (crop 96 findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) argument 107 findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) argument [all...] |
/packages/apps/Gallery2/jni/filters/ |
H A D | geometry.c | 116 static __inline__ void crop(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight, int offsetWidth, int offsetHeight){ function 160 crop(source, srcWidth, srcHeight, destination, dstWidth, dstHeight, offsetWidth, offsetHeight);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageCrop.java | 32 import com.android.gallery3d.filtershow.crop.CropDrawingUtils; 33 import com.android.gallery3d.filtershow.crop.CropMath; 34 import com.android.gallery3d.filtershow.crop.CropObject; 88 public void setFilterCropRepresentation(FilterCropRepresentation crop) { argument 89 mLocalRep = (crop == null) ? new FilterCropRepresentation() : crop; 98 private void internallyUpdateLocalRep(RectF crop, RectF image) { argument 100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height()); 101 mGeometry.crop.set(crop); [all...] |
H A D | GeometryMathUtils.java | 51 public RectF crop = FilterCropRepresentation.getNil(); field in class:GeometryMathUtils.GeometryHolder 57 crop.set(h.crop); 64 crop = FilterCropRepresentation.getNil(); 71 crop.equals(FilterCropRepresentation.getNil()) && 85 ((crop == null && h.crop == null) || (crop != null && crop.equals(h.crop))) [all...] |