示例#1
0
 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);
 }
示例#2
0
 public Bitmap getOutputImage()
 {
     Paint paint = new Paint(1);
     float f;
     Object obj;
     Bitmap bitmap;
     Canvas canvas;
     Object obj1;
     int i;
     int j;
     int k;
     if (PIPCameraApplication.b)
     {
         i = 612;
     } else
     {
         i = 960;
     }
     Exception exception;
     if (mComposeInfo != null)
     {
         j = (int)((float)i * mComposeInfo.getAspectRatio());
     } else
     {
         j = i;
     }
     bitmap = Bitmap.createBitmap(i, j, ev.a(false));
     canvas = new Canvas(bitmap);
     if (mFrameInfo == null) goto _L2; else goto _L1
示例#3
0
    private List translatePointsListWithScale(float f, float f1, float f2)
    {
        ArrayList arraylist = new ArrayList();
        for (int i = 0; i < mComposeInfo.getTrackPointsArray().size(); i++)
        {
            ArrayList arraylist1 = new ArrayList();
            List list = (List)mComposeInfo.getTrackPointsArray().get(i);
            if (list != null && list.size() > 0)
            {
                for (int j = 0; j < list.size(); j++)
                {
                    Point point = (Point)list.get(j);
                    arraylist1.add(new Point((int)((float)point.x * f * f1 + 0.5F), (int)((float)point.y * f * f2 + 0.5F)));
                }

            }
            arraylist.add(arraylist1);
        }

        return arraylist;
    }