Esempio n. 1
0
 protected final void a(Bitmap bitmap) {
   if (a() instanceof RoundImageView) {
     super.a(bitmap);
     return;
   } else {
     v v1 = new v(((ImageView) a()).getResources(), bitmap);
     v1.a();
     v1.a(bitmap.getWidth() / 2);
     a(((Drawable) (v1)));
     return;
   }
 }
Esempio n. 2
0
 public final void a(int i, int j) {
   Bitmap bitmap = BitmapFactory.decodeResource(((ImageView) a()).getResources(), aq.w);
   float f = bitmap.getWidth();
   float f1 = bitmap.getHeight();
   if (f > f1) {
     f = (float) i / f;
   } else {
     f = (float) j / f1;
   }
   com.roidapp.baselib.a.a.a();
   bitmap = com.roidapp.baselib.a.a.a(bitmap, f);
   b = new v(((ImageView) a).getResources(), bitmap);
   b.a(bitmap.getWidth() / 2);
   b.a();
 }