Home | History | Annotate | Download | only in filters

Lines Matching defs:crop

29     public static final String SERIALIZATION_NAME = "CROP";
37 public FilterCropRepresentation(RectF crop) {
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) {
86 if (crop == null) {
89 mCrop.set(crop);
93 * Takes a crop rect contained by [0, 0, 1, 1] and scales it by the height
96 public static void findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) {
97 crop.left *= bitmapWidth;
98 crop.top *= bitmapHeight;
99 crop.right *= bitmapWidth;
100 crop.bottom *= bitmapHeight;
104 * Takes crop rect and normalizes it by scaling down by the height and width
107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) {
108 crop.left /= bitmapWidth;
109 crop.top /= bitmapHeight;
110 crop.right /= bitmapWidth;
111 crop.bottom /= bitmapHeight;