示例#1
0
    public void method_1(sprᮃ A_0, Graphics A_1, PointF A_2)
    {
        int num = 0x10;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("堵圷帹夻", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("儵䨷嬹䰻嘽⤿⅁㝃", num));
        }
        GraphicsUnit pageUnit = A_1.PageUnit;

        A_1.PageUnit = GraphicsUnit.Point;
        float pageScale = A_1.PageScale;

        A_1.PageScale   = 1f;
        this.graphics_0 = A_1;
        this.pointF_0   = A_2;
        using (this.spr⇄_0 = new spr⇄())
        {
            A_0.ᜀ(this);
        }
        A_1.PageScale = pageScale;
        A_1.PageUnit  = pageUnit;
    }
示例#2
0
    private static void smethod_3(sprᮃ A_0, spr⤿ A_1, Size A_2, Class378 A_3)
    {
        int num = 13;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("刲䔴䐶", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("吲匴伶", num));
        }
        A_1.ᜅ();
        if (A_3.method_9())
        {
            A_1.ᜀ();
        }
        if (A_3.method_11())
        {
            A_1.ᜃ();
        }
        A_1.ᜀ(A_3.method_13(), 0f, 0f, (float)A_2.Width, (float)A_2.Height);
        A_1.ᜀ(A_3.method_0());
        new Class450().method_0(A_0, A_1.ᜆ());
    }
示例#3
0
    public float method_3(sprᮃ A_0, SizeF A_1, Graphics A_2, float A_3, float A_4, float A_5, float A_6)
    {
        int num = 14;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("唳䘵䬷", num));
        }
        if (A_2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("匳䐵夷䨹吻圽⌿ㅁ", num));
        }
        if (A_5 <= 0f)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䌳張尷丹吻", num));
        }
        if (A_6 <= 0f)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("尳匵儷崹吻䨽", num));
        }
        Matrix matrix = smethod_0(A_2, A_3, A_4);
        PointF tf     = smethod_1(new PointF(A_5, A_6), A_2);
        float  num2   = tf.X / A_1.Width;
        float  num3   = tf.Y / A_1.Height;
        float  scaleX = Math.Min(num2, num3);

        matrix.Scale(scaleX, scaleX, MatrixOrder.Prepend);
        Matrix transform = A_2.Transform;

        A_2.Transform = matrix;
        this.method_0(A_0, A_2);
        A_2.Transform = transform;
        return(scaleX);
    }
示例#4
0
    public SizeF method_2(sprᮃ A_0, SizeF A_1, Graphics A_2, float A_3, float A_4, float A_5)
    {
        int num = 0x13;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("堸䬺丼", num));
        }
        if (A_2 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("常䤺尼伾⥀⩂♄㑆", num));
        }
        if (A_5 <= 0f)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䨸堺尼匾⑀", num));
        }
        Matrix matrix = smethod_0(A_2, A_3, A_4);

        matrix.Scale(A_5, A_5, MatrixOrder.Prepend);
        Matrix transform = A_2.Transform;

        A_2.Transform = matrix;
        this.method_0(A_0, A_2);
        A_2.Transform = transform;
        PointF tf = smethod_2(A_1.ToPointF(), A_2);

        return(new SizeF(tf.X * A_5, tf.Y * A_5));
    }
示例#5
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);
    }
示例#6
0
 internal void method_7()
 {
     this.sprᧂ_0   = null;
     this.pointF_1 = PointF.Empty;
     this.bool_0   = false;
     this.sprᮃ_0   = null;
 }
示例#7
0
    public void method_0(sprᮃ A_0, Graphics A_1)
    {
        int num = 1;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䤦䘨伪䠬", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䀦嬨䨪崬䜮堰倲䘴", num));
        }
        GraphicsUnit pageUnit = A_1.PageUnit;

        A_1.PageUnit = GraphicsUnit.Point;
        float pageScale = A_1.PageScale;

        A_1.PageScale   = 1f;
        this.graphics_0 = A_1;
        using (this.spr⇄_0 = new spr⇄())
        {
            A_0.ᜀ(this);
        }
        A_1.PageScale = pageScale;
        A_1.PageUnit  = pageUnit;
    }
示例#8
0
    private static void smethod_6(sprᮃ A_0, PointF A_1)
    {
        spr៧ spr = A_0;

        if (!spr⃸.ᜀ((PointF)spr.ᜀ()[spr.ᜀ().Count - 1], A_1, 0.1f))
        {
            spr.ᜀ().Add(A_1);
        }
    }
示例#9
0
 private static bool smethod_3(sprᮃ A_0, sprᮃ A_1, bool A_2, bool A_3, sprᧂ A_4, int A_5)
 {
     if (A_2)
     {
         smethod_5(A_0, A_1, A_3);
         return(false);
     }
     return(smethod_4(A_0, A_1, A_3, A_4, A_5));
 }
示例#10
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));
    }
示例#11
0
 private static void smethod_2(spr៧ A_0, sprᧂ A_1, int A_2, ArrayList A_3, sprᮃ A_4, bool A_5)
 {
     A_3.AddRange(A_0.ᜀ());
     if (A_4 != null)
     {
         smethod_3(A_0, A_4, true, A_5, A_1, A_2);
     }
     else if ((A_1.() != 1) && A_1.ᜁ())
     {
         smethod_3(A_0, A_1.ᜀ(A_1.() - 1), true, A_1.ᜀ(A_1.() - 1) is spr៧, A_1, A_2);
     }
 }
示例#12
0
 internal void method_3(spr៧ A_0, spr៧ A_1)
 {
     this.sprᮃ_0   = A_1;
     this.object_0 = A_0;
     this.bool_1   = true;
     if (!this.bool_0)
     {
         this.bool_0 = true;
         this.spr៧_0 = A_0;
         this.bool_2 = true;
     }
 }
示例#13
0
    internal static spr⊗ smethod_1(sprᮃ A_0, SizeF A_1, Class378 A_2)
    {
        Size size = Class969.smethod_5(A_1, A_2.method_0(), (double)A_2.method_1());
        spr⊗ r⊗   = new spr⊗(size.Width, size.Height, A_2.method_1(), A_2.method_1(), A_2.method_5());

        using (spr⤿ r⤿ = new spr⤿(r⊗))
        {
            smethod_3(A_0, r⤿, size, A_2);
        }
        r⊗.ᜀ(new spr⇼(A_2.method_2(), A_2.method_3(), A_2.method_4()));
        return(r⊗);
    }
示例#14
0
    internal void method_0(sprᧂ A_0)
    {
        this.sprᧂ_0 = new sprᧂ();
        this.method_5().ᜀ(A_0.ᜁ());
        this.method_17(A_0.ᜁ());
        this.method_7().ᜁ(this.method_5());
        this.sprᮃ_0   = null;
        this.object_0 = null;
        this.spr៧_0   = null;
        this.bool_0   = false;
        this.method_20(0);
        ArrayList list = smethod_0(A_0);

        this.bool_4 = spr⃸.ᜀ(list);
    }
示例#15
0
 internal void method_4(spr᣼[] A_0, sprᡉ[] A_1, sprᡉ A_2)
 {
     this.object_0 = A_0[A_0.Length - 1];
     this.spr᣼_0   = A_0;
     this.sprᡉ_0   = A_1;
     if (!this.bool_0)
     {
         this.bool_0 = true;
         this.bool_2 = false;
         this.spr᣼_1 = A_0;
         this.sprᡉ_1 = A_1;
     }
     this.sprᮃ_0 = A_2;
     this.bool_1 = false;
 }
示例#16
0
    private static void smethod_5(sprᮃ A_0, sprᮃ A_1, bool A_2)
    {
        spr៧ spr = A_0;

        if (A_2)
        {
            smethod_6(A_1, (PointF)spr.ᜀ()[0]);
        }
        else
        {
            sprᡉ rᡉ = A_1;
            if (!spr⃸.ᜀ(rᡉ.ᜀ().ᜀ(), (PointF)spr.ᜀ()[0], 0.1f))
            {
                spr.ᜀ().Insert(0, rᡉ.ᜀ().ᜀ());
            }
        }
    }
示例#17
0
    private static void smethod_2(sprᮃ A_0, SizeF A_1, Class378 A_2, Stream A_3)
    {
        int      num      = 12;
        Bitmap   bitmap   = null;
        Graphics graphics = null;
        IntPtr   zero     = IntPtr.Zero;
        Metafile metafile = null;

        try
        {
            bitmap = new Bitmap(1, 1);
            bitmap.SetResolution(96f, 96f);
            graphics = spr᪻.ᜀ(bitmap);
            zero     = graphics.GetHdc();
            Size size = Class969.smethod_5(A_1, A_2.method_0(), 96.0);
            metafile = new Metafile(A_3, zero, new RectangleF(0f, 0f, (float)size.Width, (float)size.Height), MetafileFrameUnit.Pixel, A_2.method_8());
            using (spr⤿ r⤿ = new spr⤿(metafile))
            {
                smethod_3(A_0, r⤿, size, A_2);
            }
        }
        finally
        {
            if (metafile != null)
            {
                metafile.Dispose();
            }
            if ((zero != IntPtr.Zero) && (graphics != null))
            {
                graphics.ReleaseHdc(zero);
            }
            if (graphics != null)
            {
                graphics.Dispose();
            }
            if (bitmap != null)
            {
                bitmap.Dispose();
            }
        }
        if (A_3 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䄱䀳䐵崷嬹儻", num));
        }
    }
示例#18
0
    private static bool smethod_1(sprᡉ A_0, sprᧂ A_1, int A_2, ArrayList A_3, sprᮃ A_4, bool A_5)
    {
        bool flag = false;

        A_3.Add(A_0.ᜀ().ᜂ());
        A_3.Add(A_0.ᜀ().ᜀ());
        if (A_4 != null)
        {
            if (smethod_3(A_0, A_4, false, A_5, A_1, A_2))
            {
                flag = true;
            }
            return(flag);
        }
        if (((A_1.() != 1) && A_1.ᜁ()) && smethod_3(A_0, A_1.ᜀ(A_1.() - 1), false, A_1.ᜀ(A_1.() - 1) is spr៧, A_1, A_2))
        {
            flag = true;
        }
        return(flag);
    }
示例#19
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);
    }
示例#20
0
 internal void method_4(sprᮃ A_0)
 {
     this.sprự_0.ᜁ(A_0);
 }
示例#21
0
 internal void method_26(sprᮃ A_0)
 {
     this.sprᮃ_0 = A_0;
 }