예제 #1
0
    internal static spr᧢ smethod_13(ShapeObject A_0, SizeF A_1)
    {
        PointF  tf;
        VMLFill fill = A_0.Fill;
        sprᲆ    rᲆ   = new sprᲆ();
        sprᧂ    rᧂ   = new sprᧂ();

        rᧂ.ᜀ(true);
        rᲆ.ᜁ(rᧂ);
        RectangleF ef = new RectangleF(0f, 0f, A_1.Width, A_1.Height);

        if (A_0.IsTextureRotated)
        {
            tf = spr⃸.ᜁ(spr⃸.ᜀ((float)fill.FocusLeft, (float)fill.FocusTop, ef), spr⃸.ᜁ(ef), (float)A_0.Rotation);
            PointF[] tfArray = spr⃸.ᜀ(ef, (float)A_0.Rotation);
            rᧂ.ᜃ(tfArray);
        }
        else
        {
            RectangleF ef2 = spr⃸.ᜁ(ef, (float)A_0.Rotation);
            tf = spr⃸.ᜀ((float)fill.FocusLeft, (float)fill.FocusTop, ef2);
            rᧂ.ᜁ(ef2);
        }
        return(smethod_6(rᲆ, fill, tf));
    }
예제 #2
0
 private sprᲆ[] method_0(sprᲆ A_0, spr⇻ A_1)
 {
     this.spr⇻_0 = A_1.ᜁ();
     if (((this.spr⇻_0.ᜂ() == 1) && (this.spr⇻_0.ᜃ().ᜃ() == null)) && (this.spr⇻_0.ᜀ().ᜃ() == null))
     {
         return(null);
     }
     this.sprᲆ_0 = new sprᲆ();
     this.sprᲆ_0.ᜀ(A_0.ᜀ().());
     this.sprᲆ_1 = new sprᲆ(A_0.ᜀ().ᜈ());
     this.sprᲆ_1.ᜀ().ᜂ((this.spr⇻_0.ᜄ() <= 0.75f) ? 0.75f : this.spr⇻_0.ᜄ());
     this.sprᲆ_1.ᜀ().ᜀ(DashStyle.Solid);
     this.sprᲆ_1.ᜀ().ᜀ(LineJoin.Miter);
     this.sprᲆ_1.ᜀ().ᜁ(LineCap.Round);
     this.sprᲆ_1.ᜀ().ᜀ(LineCap.Round);
     for (int i = 0; i < A_0.(); i++)
     {
         sprᧂ rᧂ = A_0.ᜀ(i);
         if (!rᧂ.ᜁ() && (rᧂ.() != 0))
         {
             this.bool_0 = true;
             rᧂ.ᜀ(0).ᜀ(this);
             this.bool_0 = false;
             rᧂ.ᜀ(rᧂ.() - 1).ᜀ(this);
         }
     }
     return(new sprᲆ[] { this.sprᲆ_0, this.sprᲆ_1 });
 }
예제 #3
0
    private static ArrayList smethod_0(sprᧂ A_0)
    {
        ArrayList list = new ArrayList();
        bool      flag = false;
        sprᮃ      rᮃ   = null;

        for (int i = 0; i < A_0.(); i++)
        {
            sprᮃ rᮃ2 = A_0.ᜀ(i);
            if (rᮃ2 is spr៧)
            {
                smethod_2((spr៧)rᮃ2, A_0, i, list, rᮃ, flag);
                flag = true;
            }
            else if (rᮃ2 is sprᡉ)
            {
                if (smethod_1((sprᡉ)rᮃ2, A_0, i, list, rᮃ, flag))
                {
                    i++;
                }
                flag = false;
            }
            rᮃ = rᮃ2;
        }
        return(list);
    }
예제 #4
0
    internal PointF method_1(sprᧂ A_0, float A_1)
    {
        float num = this.method_0(A_0);

        this.float_1 = num * A_1;
        this.method_3();
        A_0.ᜀ(this);
        return(this.pointF_0);
    }
예제 #5
0
    private float method_0(sprᧂ A_0)
    {
        this.method_2();
        A_0.ᜀ(this);
        float num = this.float_0;

        this.method_2();
        return(num);
    }
예제 #6
0
    private static sprᲆ smethod_1(float A_0, sprᲆ A_1, sprᲆ A_2)
    {
        sprᲆ rᲆ = Class1023.smethod_0(Class675.smethod_1(A_1, A_0 * 0.5f));

        for (int i = 0; i < rᲆ.(); i++)
        {
            if (i == (rᲆ.() - 1))
            {
                sprᧂ rᧂ  = rᲆ.ᜀ(i);
                sprᧂ rᧂ2 = A_2.ᜀ(0);
                for (int j = 0; j < rᧂ.(); j++)
                {
                    rᧂ2.ᜀ(j, rᧂ.ᜀ(j));
                }
            }
예제 #7
0
    internal sprᲆ method_0(sprᲆ A_0)
    {
        sprᲆ rᲆ = A_0.ᜀ(false);

        if (A_0.() != 0)
        {
            for (int i = A_0.() - 1; i >= 0; i--)
            {
                sprᧂ rᧂ = A_0.ᜀ(i);
                this.sprᧂ_0 = new sprᧂ();
                this.sprᧂ_0.ᜀ(rᧂ.ᜁ());
                rᧂ.ᜀ(this);
                rᲆ.ᜁ(this.sprᧂ_0);
            }
        }
        return(rᲆ);
    }
예제 #8
0
    private static bool smethod_4(sprᮃ A_0, sprᮃ A_1, bool A_2, sprᧂ A_3, int A_4)
    {
        sprᡉ rᡉ = A_0;

        if (A_2)
        {
            smethod_6(A_1, rᡉ.ᜀ().ᜂ());
        }
        else
        {
            sprᡉ rᡉ2 = A_1;
            if (!spr⃸.ᜀ(rᡉ2.ᜀ().ᜀ(), rᡉ.ᜀ().ᜂ(), 0.1f))
            {
                PointF[] tfArray = new PointF[] { rᡉ2.ᜀ().ᜀ(), rᡉ.ᜀ().ᜂ() };
                spr៧     spr     = new spr៧(tfArray);
                A_3.ᜀ(A_4, spr);
                return(true);
            }
        }
        return(false);
    }
예제 #9
0
    private static sprᲆ smethod_8(PointF[] A_0, byte[] A_1)
    {
        sprᲆ rᲆ = new sprᲆ();
        sprᧂ rᧂ = null;

        PointF[] tfArray2 = new PointF[] { PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty };
        PointF   empty    = PointF.Empty;
        int      index    = 0;
        spr៧     spr      = null;

        for (int i = 0; i < A_0.Length; i++)
        {
            float x = A_0[i].X;
            float y = A_0[i].Y;
            if (A_1[i] == 0)
            {
                rᧂ = new sprᧂ();
                rᧂ.ᜀ(true);
                spr   = null;
                empty = new PointF(x, y);
            }
            else
            {
                if ((A_1[i] & 3) == 3)
                {
                    spr = null;
                    if (index == 0)
                    {
                        tfArray2    = new PointF[] { PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty };
                        tfArray2[0] = empty;
                    }
                    index++;
                    tfArray2[index] = new PointF(x, y);
                    if (index == 3)
                    {
                        index = 0;
                        rᧂ.ᜁ(new sprᡉ(tfArray2));
                        empty = tfArray2[3];
                    }
                }
                else if ((A_1[i] & 1) == 1)
                {
                    if (spr == null)
                    {
                        spr = new spr៧();
                        rᧂ.ᜁ(spr);
                        spr.ᜀ().Add(empty);
                    }
                    empty = new PointF(x, y);
                    spr.ᜀ().Add(empty);
                }
                if ((A_1[i] & 0x80) == 0x80)
                {
                    rᲆ.ᜁ(rᧂ);
                    new sprᧂ().ᜀ(true);
                    spr   = null;
                    index = 0;
                }
            }
        }
        return(rᲆ);
    }
예제 #10
0
    private void method_1(PointF A_0, float A_1, PsLineEndSize A_2, PsLineEndSize A_3)
    {
        PsLineEndType type = this.method_3();
        sprᧂ          rᧂ   = new sprᧂ();
        ArrayList     list = new ArrayList();
        float         num3 = (this.spr⇻_0.ᜄ() <= 2.0) ? 2f : this.spr⇻_0.ᜄ();

        rᧂ.ᜀ(true);
        float width  = float_13[A_2];
        float height = float_13[A_3];

        switch (type)
        {
        case 1:
            list.Add(new spr៧(float_9));
            break;

        case 2:
            list.Add(new spr៧(float_10));
            break;

        case 3:
            list.Add(new spr៧(float_12));
            break;

        case 4:
        {
            spr⢩ r⢩ = new spr⢩();
            r⢩.ᜀ(new PointF(-1.5f, -1.5f));
            r⢩.ᜀ(new SizeF(3f, 3f));
            r⢩.ᜃ(0.0);
            r⢩.ᜂ(360.0);
            sprṋ[] sprṋArray = r⢩.ᜃ();
            for (int i = 0; i < sprṋArray.Length; i++)
            {
                sprᡉ rᡉ = new sprᡉ();
                rᡉ.ᜀ(sprṋArray[i]);
                list.Add(rᡉ);
            }
            break;
        }

        case 5:
        {
            spr៧ spr = new spr៧(float_11);
            list.Add(spr);
            rᧂ.ᜀ(false);
            num3 = this.sprᲆ_1.ᜀ().ᜀ();
            SizeF ef = sizeF_0[A_2][A_3];
            width  = ef.Width;
            height = ef.Height;
            break;
        }
        }
        if (list.Count != 0)
        {
            width  *= num3;
            height *= num3;
            spr➂ r➂ = new spr➂();
            r➂.ᜁ(width, height, MatrixOrder.Prepend);
            r➂.ᜀ(0f, this.method_2(type, A_2, A_3), MatrixOrder.Append);
            r➂.ᜀ(A_1, MatrixOrder.Append);
            r➂.ᜀ(A_0.X, A_0.Y, MatrixOrder.Append);
            for (int j = 0; j < list.Count; j++)
            {
                spr➘ r➘ = (spr➘)list[j];
                r➘.ᜀ(r➂);
                rᧂ.ᜁ((sprᮃ)r➘);
            }
            if (rᧂ.ᜁ())
            {
                this.sprᲆ_0.ᜁ(rᧂ);
            }
            else
            {
                this.sprᲆ_1.ᜁ(rᧂ);
            }
        }
    }