示例#1
0
文件: ajt.java 项目: ChiangC/FMTech
 public final void n() {
   CropImageView localCropImageView = (CropImageView) this.ai;
   if (localCropImageView != null) {
     RectF localRectF = localCropImageView.a();
     FilterParameter localFilterParameter = N();
     localFilterParameter.setParameterFloat(43, localRectF.left);
     localFilterParameter.setParameterFloat(45, localRectF.top);
     localFilterParameter.setParameterFloat(44, localRectF.right);
     localFilterParameter.setParameterFloat(46, localRectF.bottom);
   }
   super.n();
 }
示例#2
0
文件: ajt.java 项目: ChiangC/FMTech
 protected final void e_() {
   Bitmap localBitmap1 = M().b();
   float f1 = efj.e(M().h.getPostRotation());
   Matrix localMatrix;
   if (f1 != 0.0F) {
     localMatrix = new Matrix();
     localMatrix.setRotate(f1, localBitmap1.getWidth() / 2.0F, localBitmap1.getHeight() / 2.0F);
   }
   for (Bitmap localBitmap2 =
           Bitmap.createBitmap(
               localBitmap1,
               0,
               0,
               localBitmap1.getWidth(),
               localBitmap1.getHeight(),
               localMatrix,
               false);
       ;
       localBitmap2 = localBitmap1) {
     CropImageView localCropImageView = (CropImageView) this.ai;
     int i;
     if (localCropImageView != null) {
       localCropImageView.a(localBitmap2);
       FilterParameter localFilterParameter = N();
       switch (localFilterParameter.getParameterInteger(42)) {
         default:
           i = -1;
           d(i);
           float f2 = localFilterParameter.getParameterFloat(43);
           float f3 = localFilterParameter.getParameterFloat(45);
           float f4 = localFilterParameter.getParameterFloat(44);
           float f5 = localFilterParameter.getParameterFloat(46);
           int j = localBitmap2.getWidth();
           int k = localBitmap2.getHeight();
           int m = Math.round(f2 * j);
           int n = Math.round(f3 * k);
           int i1 = Math.round(j * (f4 - f2));
           int i2 = Math.round(k * (f5 - f3));
           float f6 = m;
           float f7 = n;
           float f8 = i1;
           float f9 = i2;
           float f10 = localCropImageView.a.getWidth();
           float f11 = localCropImageView.a.getHeight();
           float f12 = efj.a(f6, 0.0F, f10);
           float f13 = efj.a(f7, 0.0F, f11);
           float f14 = efj.a(f8 + f6, 0.0F, f10);
           float f15 = efj.a(f9 + f7, 0.0F, f11);
           localCropImageView.b.set(f12, f13, f14, f15);
           localCropImageView.c = true;
           localCropImageView.invalidate();
       }
     }
     for (; ; ) {
       j(false);
       bp localbp = f();
       if (localbp != null) {
         localbp.setRequestedOrientation(2);
       }
       return;
       i = 0;
       break;
       i = 1;
       break;
       i = 2;
       break;
       Log.e(
           "CropFragment",
           "Illegal update preview image request: the view is not yet initialized!");
     }
   }
 }