public void cancelSelected() { if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0) { mTRoundImageViewLayout.cancelSelected(); } }
public void changeEdge(int i) { edge = i; if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0) { mTRoundImageViewLayout.changeViewEdge(i); } }
public void changeCornerRadius(int i) { if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0) { mTRoundImageViewLayout.changeViewCorner(i); } radius = i; }
public float getEdge() { if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0) { return (float)mTRoundImageViewLayout.getEdge(); } else { return (float)edge; } }
private void layoutCompose(int i, int j) { int k = (int)(((float)i / (float)j) * 306F); float f = (float)j / 306F; float f1 = (float)i / (float)k; mTRoundImageViewLayout.setVisibility(0); aiy aiy1 = new aiy(translatePointsListWithScale(1.0F, f, f1), mComposeInfo.getVectorPointsArray(), bitmaps, (int)radius, mIsUsingShadow, mIsFirstSet, 2.5F); aiy1.a(mComposeInfo.getDefaultEdge()); mTRoundImageViewLayout.configByInfo(aiy1); }
public void changeCornerRadius(boolean flag) { int i = (int)getContext().getResources().getDimension(0x7f08002d); if (!flag) { i = 0; } if (mTRoundImageViewLayout != null && mTRoundImageViewLayout.getVisibility() == 0) { mTRoundImageViewLayout.changeViewCorner(i); } radius = i; }
{ k = mTRoundImageViewLayout.getWidth(); f = (float)i / (float)k; obj = Bitmap.createBitmap(i, j, android.graphics.Bitmap.Config.ARGB_8888); obj1 = new Canvas(((Bitmap) (obj))); ((Canvas) (obj1)).setDrawFilter(new PaintFlagsDrawFilter(0, 3)); ((Canvas) (obj1)).scale(f, f); mTRoundImageViewLayout.draw(((Canvas) (obj1))); if (obj != null && !((Bitmap) (obj)).isRecycled()) { canvas.drawBitmap(((Bitmap) (obj)), 0.0F, 0.0F, paint); ((Bitmap) (obj)).recycle(); } }
public void clearResource(boolean flag) { if (flag && mTRoundImageViewLayout != null) { mTRoundImageViewLayout.setBitmapsNull(); } }
public void clearImageViwesBitmap() { if (mTRoundImageViewLayout != null) { mTRoundImageViewLayout.setBitmapsNull(); } if (bitmaps != null) { bitmaps.clear(); } radius = 0.0F; }
private void initView() { View.inflate(getContext(), 0x7f030043, this); mTRoundImageViewLayout = (TRoundImageViewLayout)findViewById(0x7f0c013a); mTRoundImageViewLayout.setDelegate(this); }