Exemplo n.º 1
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⊗);
    }
Exemplo n.º 2
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));
        }
    }