Esempio n. 1
0
    public Class307(SizeF A_0, bool A_1)
    {
        float num3 = 1f;
        sprᩆ  rᩆ   = new sprḀ();

        if (A_1)
        {
            sprᣮ   rᣮ2;
            double num;
            double num2;
            this.method_3(A_0, rᩆ, new sprᴢ(72f, 72f), 0f, 0f, out num, out num2, out rᣮ2);
            sprᣮ rᣮ = spr⇊.ᜀ(rᣮ2.ᜀ() * num3, rᣮ2.ᜁ(), rᣮ2.ᜂ(), rᣮ2.ᜃ() * num3, rᣮ2.ᜄ(), rᣮ2.ᜅ(), rᩆ.ᜀ());
            rᩆ.ᜀ(new spr⟜((int)(num * num3), (int)(num2 * num3)));
            if (rᣮ == null)
            {
                rᣮ = spr⇊.ᜀ(1f, 0f, 0f, 1f, 0f, 0f, rᩆ.ᜀ());
            }
            this.spr┿_0 = spr⇊.ᜀ(rᩆ, rᣮ) as spr┿;
            RectangleF ef = new RectangleF(0f, 0f, A_0.Width, A_0.Height);
            spr☚       r☚ = spr⇊.ᜁ(rᩆ.ᜀ());
            r☚.ᜁ(ef.Left, ef.Top);
            r☚.ᜂ(ef.Left, ef.Bottom);
            r☚.ᜂ(ef.Right, ef.Bottom);
            r☚.ᜂ(ef.Right, ef.Top);
            r☚.ᜂ(ef.Left, ef.Top);
            r☚.᜘();
            this.method_0().ᜁ(ef.Left, ef.Top);
            this.method_0().᜛().ᜁ(r☚);
            this.method_0().᜙();
        }
    }
Esempio n. 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 });
 }
Esempio n. 3
0
    private void method_28(spr➎ A_0, spr│ A_1, Stream A_2)
    {
        spr╞ r╞ = new spr╞();
        spr│ r│ = new spr│();

        r│.ᜀ(A_1.ᜄ(), A_1.ᜀ());
        r│.(A_1.ᜂ());
        r│.ᜇ(A_1.ᜆ());
        r╞.ᜀ(A_0, A_1, A_2);
    }
Esempio n. 4
0
    internal static void smethod_0(sprᮃ A_0, SizeF A_1, Stream A_2, ImageFormat A_3, Class378 A_4)
    {
        int num = 8;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("伭䀯䄱", num));
        }
        if (A_2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("崭䐯䀱儳圵唷", num));
        }
        switch (A_3)
        {
        case ImageFormat.Bmp:
        {
            using (spr⊗ r⊗ = smethod_1(A_0, A_1, A_4))
            {
                r⊗.ᜂ(A_2);
                return;
            }
        }

        case ImageFormat.Emf:
        case ImageFormat.Wmf:
            smethod_2(A_0, A_1, A_4, A_2);
            return;

        case ImageFormat.Jpeg:
        {
            using (spr⊗ r⊗3 = smethod_1(A_0, A_1, A_4))
            {
                r⊗3.ᜀ(A_2, A_4.method_7());
                return;
            }
        }

        case ImageFormat.Png:
        {
            using (spr⊗ r⊗2 = smethod_1(A_0, A_1, A_4))
            {
                r⊗2.ᜁ(A_2);
                return;
            }
        }

        case ImageFormat.Tiff:
            using (spr⊗ r⊗4 = smethod_1(A_0, A_1, A_4))
            {
                r⊗4.ᜀ(A_2, A_4.method_6());
            }
            return;
        }
        throw new InvalidOperationException(BookmarkStart.b("笭帯圱䰳䘵崷夹䠻嬽␿扁ⵃ⭅⥇ⵉ⥋湍⍏㍑≓㍕硗㱙㍛ⱝൟ͡ၣ䙥ᩧཀྵᵫ᭭ᕯűs፵ᱷ呹", num));
    }
Esempio n. 5
0
    private void method_2()
    {
        Class826 stroke = this.shapeObject_0.Stroke;

        if (!stroke.method_0())
        {
            this.spr⚪_0 = null;
        }
        else
        {
            switch (stroke.method_12())
            {
            case LineFillType.Pattern:
            {
                spr᧢ r᧢2 = Class1075.smethod_2(stroke.method_36(), null, sprឦ.ᜀ(stroke.method_6()), sprឦ.ᜀ(stroke.method_10()));
                this.spr⚪_0 = new spr⚪(r᧢2);
                break;
            }

            case LineFillType.Texture:
            case LineFillType.Picture:
            {
                spr⍂ r⍂ = new spr⍂(stroke.method_36());
                this.spr⚪_0 = new spr⚪(r⍂);
                break;
            }

            default:
            {
                spr᧢ r᧢ = Class1075.smethod_1(sprⓚ.ᜀ(stroke.method_6()), stroke.method_34());
                this.spr⚪_0 = new spr⚪(r᧢);
                break;
            }
            }
            this.spr⚪_0.ᜀ(Class1022.smethod_2(stroke.method_16()));
            this.spr⚪_0.ᜂ(this.method_27());
            this.method_3(stroke);
            this.method_4(stroke);
            LineCap cap = Class1022.smethod_3(stroke.method_18());
            this.spr⚪_0.ᜀ(Class1022.smethod_4(stroke.method_18()));
            this.spr⚪_0.ᜀ(cap);
            this.spr⚪_0.ᜁ(cap);
        }
    }
Esempio n. 6
0
 private void method_30(object A_0, spr⌑ A_1)
 {
     if (this.method_3() != null)
     {
         Class195 class2 = this.method_3();
         sprᣍ     rᣍ     = A_1.ᜂ();
         A_1.ᜁ();
         int num   = A_1.ᜀ();
         int count = class2.method_34().method_0().Count;
         this.method_19(class2.method_34().method_0()[num].method_2(), rᣍ);
         this.method_21(class2.method_9(), rᣍ, count, num, false);
         if (this.method_1().CreateWordBookmarks)
         {
             this.method_23(class2.method_11(), rᣍ, count, num);
         }
         else
         {
             this.method_21(class2.method_9(), rᣍ, count, num, true);
         }
     }
 }
Esempio n. 7
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ᧂ);
            }
        }
    }