Searched defs:crop (Results 1 - 12 of 12) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DBitmapUtil.java35 * 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 DBoundedRect.java16 package com.android.gallery3d.filtershow.crop;
H A DCropDrawingUtils.java17 package com.android.gallery3d.filtershow.crop;
H A DCropMath.java17 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 DCropExtras.java17 package com.android.gallery3d.filtershow.crop;
H A DCropObject.java17 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 DCropView.java17 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 DCropActivity.java17 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 DFilterCropRepresentation.java37 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 Dgeometry.c116 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 DImageCrop.java32 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 DGeometryMathUtils.java51 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...]

Completed in 7375 milliseconds