Пример #1
0
    private void method_19(CharacterFormat A_0, int A_1)
    {
        Class454 class2 = this.class764_0.method_41(A_1);

        if (class2 != null)
        {
            ShapeObject obj2 = new ShapeObject(this.class764_0.method_42());
            obj2.SetShapeType(ShapeType.OleObject);
            obj2.CharacterFormat.method_25(A_0);
            obj2.TextWrappingStyle = TextWrappingStyle.Inline;
            MemoryStream input = class2.method_7();
            if (input != null)
            {
                byte[] buffer = new byte[(int)(input.Length - 8L)];
                input.Position = 0L;
                BinaryReader reader2 = new BinaryReader(input);
                reader2.ReadUInt16();
                int num5 = reader2.ReadUInt16();
                int num6 = reader2.ReadUInt16();
                reader2.ReadUInt16();
                input.Read(buffer, 0, buffer.Length);
                obj2.ImageData.method_87(Class409.smethod_29(buffer, Class1044.smethod_1((int)((((double)num5) / 2540.0) * 1963.0), (int)((((double)num6) / 2540.0) * 1963.0), 1963.0, 1963.0)));
                obj2.SetShapeAttribute(0x1006, obj2.ImageData.ImageBytes);
            }
            MemoryStream stream = class2.method_8();
            if (stream != null)
            {
                BinaryReader reader = new BinaryReader(stream);
                stream.Position = 12L;
                reader.ReadUInt16();
                reader.ReadUInt16();
                reader.ReadUInt16();
                reader.ReadUInt16();
                int num  = reader.ReadInt32();
                int num2 = reader.ReadInt32();
                stream.Position = 0x2cL;
                int num3 = reader.ReadInt32();
                int num4 = reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                reader.ReadInt32();
                obj2.method_37((Class969.smethod_32(num) * num3) / 1000.0);
                obj2.method_39((Class969.smethod_32(num2) * num4) / 1000.0);
            }
            this.class764_0.method_43().imethod_18(obj2);
        }
    }