protected override void vmethod_1(BinaryWriter A_0) { byte[] buffer = Class409.smethod_30(this.byte_1); base.method_9(A_0); A_0.Write(buffer.Length); Class1044 class2 = Class409.smethod_9(this.byte_1); A_0.Write(class2.method_0()); A_0.Write(class2.method_1()); A_0.Write(class2.method_2()); A_0.Write(class2.method_3()); A_0.Write(class2.method_11()); A_0.Write(class2.method_12()); if (buffer.Length > 0x4000) { MemoryStream stream = new MemoryStream(buffer); MemoryStream stream2 = new MemoryStream(); Class1156.smethod_4(stream, stream2, CompressionMethod.Stored); A_0.Write((int)stream2.Length); A_0.Write((byte)0); A_0.Write((byte)0xfe); A_0.Write(stream2.GetBuffer(), 0, (int)stream2.Length); stream2.Close(); stream.Close(); } else { A_0.Write(buffer.Length); A_0.Write((byte)0xfe); A_0.Write((byte)0xfe); A_0.Write(buffer); } }
internal static byte[] smethod_27(byte[] A_0) { MemoryStream output = new MemoryStream(); BinaryWriter writer = new BinaryWriter(output); string str = BookmarkStart.b("破搶瘸紺笼瘾ɀق籄楆祈", 15); for (int i = 0; i < str.Length; i++) { writer.Write((byte)str[i]); } writer.Write((uint)A_0.Length); Class1044 class2 = Class409.smethod_27(A_0); writer.Write(class2.method_0()); writer.Write(class2.method_1()); writer.Write(class2.method_2()); writer.Write(class2.method_3()); writer.Write(class2.method_11()); writer.Write(class2.method_12()); writer.Write((uint)0); writer.Write((ushort)0xfe00); for (int j = 0; j < 0x1d3; j++) { writer.Write((byte)0); } writer.Write(A_0); return(smethod_29(output.ToArray())); }
internal ImageSize method_19() { if (this.imageSize_0 == null) { this.imageSize_0 = this.method_23() ? new ImageSize(Class409.smethod_9(this.method_16())) : new ImageSize(0, 0); } return(this.imageSize_0); }
internal byte[] method_0() { this.binaryReader_0.BaseStream.Position = this.int_0; if (this.blipImageType_0 == BlipImageType.Bmp) { return(Class409.smethod_15(this.binaryReader_0, this.int_1)); } return(this.binaryReader_0.ReadBytes(this.int_1)); }
internal ImageFormat method_24() { if (this.method_23()) { return(Class409.smethod_0(this.method_16())); } if (this.method_21() && (this.interface7_0.imethod_0().Length > 0)) { return(Class409.smethod_6(this.interface7_0.imethod_0())); } return(ImageFormat.Unknown); }
internal byte[] method_0() { int num = 10; this.binaryReader_0.BaseStream.Position = this.int_0; int num2 = this.binaryReader_0.ReadInt32(); int num3 = this.binaryReader_0.ReadInt32(); int num4 = this.binaryReader_0.ReadInt32(); int num5 = this.binaryReader_0.ReadInt32(); int num6 = this.binaryReader_0.ReadInt32(); int num7 = this.binaryReader_0.ReadInt32(); int num8 = this.binaryReader_0.ReadInt32(); Class1044 class2 = Class1044.smethod_3(num3, num4, num5, num6, num7, num8); int count = this.binaryReader_0.ReadInt32(); if (count <= 0) { return(null); } EsBlipCompression compression = (EsBlipCompression)this.binaryReader_0.ReadByte(); this.binaryReader_0.ReadByte(); byte[] buffer = this.binaryReader_0.ReadBytes(count); EsBlipCompression compression2 = compression; if (compression2 != EsBlipCompression.Deflate) { if (compression2 != EsBlipCompression.None) { throw new InvalidOperationException(BookmarkStart.b("礯就䈳圵吷匹堻ḽⴿ❁ぃ❅⹇⍉⁋⭍灏ㅑ㭓㭕⡗⡙㥛ⵝ፟ୡୣࡥ䡧ݩ५ᩭᡯᵱၳ塵", num)); } } else { try { buffer = Class1156.smethod_0(buffer, num2, CompressionMethod.Stored); } catch (Exception) { buffer = Class567.smethod_14(); } } if (Class409.smethod_50(buffer)) { buffer = Class409.smethod_29(buffer, class2); } return(buffer); }
internal Class271(Guid A_0, byte[] A_1) : base(A_0) { int num = 9; base.method_6(base.method_7(Class409.smethod_0(A_1))); switch (base.method_5()) { case BlipImageType.Emf: case BlipImageType.Wmf: case BlipImageType.Pict: this.byte_1 = A_1; return; } throw new InvalidOperationException(BookmarkStart.b("種弰堲娴䀶圸ᬺ嬼倾㍀⹂⑄㍆楈㽊㑌㽎㑐絒", num)); }
internal Class224(Guid A_0, byte[] A_1) : base(A_0) { int num = 0; base.method_8(Class409.smethod_2(Class409.smethod_0(A_1))); switch (base.method_7()) { case BlipImageType.Emf: case BlipImageType.Wmf: case BlipImageType.Pict: this.byte_1 = A_1; return; } throw new InvalidOperationException(BookmarkStart.b("栥䜧帩ఫ䬭䠯䈱儳唵䰷匹刻夽怿㙁ⱃ⽅㭇橉╋⍍ㅏ㕑ㅓ癕㹗㕙⹛㍝şᙡ䑣൧ᡩ५䁭", num)); }
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); } }
internal Class225(Guid A_0, byte[] A_1, PresetTexture A_2) : base(A_0) { int num = 0x12; this.presetTexture_0 = A_2; base.method_8(Class409.smethod_2(Class409.smethod_0(A_1))); switch (base.method_7()) { case BlipImageType.Jpeg: case BlipImageType.Png: case BlipImageType.Bmp: this.byte_1 = A_1; return; } throw new InvalidOperationException(BookmarkStart.b("瘷唹䠻ḽ┿㩁㑃⍅⭇㹉⥋⩍灏㵑⁓㹕㵗⡙籛㝝ൟͣͥ͡䡧౩ͫᱭᵯ፱sյ塷ቹ౽겁", num)); }
internal Class270(Guid A_0, byte[] A_1, PresetTexture A_2) : base(A_0) { int num = 0x10; this.presetTexture_0 = A_2; base.method_6(base.method_7(Class409.smethod_0(A_1))); switch (base.method_5()) { case BlipImageType.Jpeg: case BlipImageType.Png: case BlipImageType.Bmp: this.byte_1 = A_1; return; } throw new InvalidOperationException(BookmarkStart.b("挵嘷儹医䤽⸿扁≃⥅㩇❉ⵋ㩍灏♑ⵓ♕㵗瑙", num)); }
private void method_1(string A_0, DocPicture A_1) { int num = 11; byte[] imageBytes = A_1.ImageBytes; if ((imageBytes != null) && (imageBytes.Length > 0)) { string str = Class238.smethod_3(Class409.smethod_0(imageBytes)); this.class422_0.method_26(this.class422_0.method_25() + 1); string str2 = string.Format(BookmarkStart.b("愰娲嘴䌶䰸䤺堼䰾湀⩂⡄♆⹈⹊㙌罎ⱐ絒⹔晖", num), this.class422_0.method_25(), str); Class113 class2 = new Class113(str2); this.class422_0.method_13().method_1().method_1(class2); class2.method_3().Write(imageBytes, 0, imageBytes.Length); this.class422_0.method_55().Add(new Class979(Class238.smethod_2((FileFormat)Class409.smethod_0(imageBytes)), str2, "")); this.method_2(A_0, str2); } }
internal static byte[] smethod_0(byte[] A_0) { if (smethod_2(A_0)) { if (Class409.smethod_50(A_0)) { A_0 = Class409.smethod_29(A_0, Class409.smethod_25(A_0)); } return(A_0); } using (spr⊗ r⊗ = new spr⊗(A_0)) { using (MemoryStream stream = new MemoryStream()) { r⊗.ᜀ(stream, 6); A_0 = Class567.smethod_10(stream); } } return(A_0); }
// Token: 0x06001DEE RID: 7662 RVA: 0x00060F7C File Offset: 0x0005F17C public void method_0(object sender, EventArgs11 e) { Class409 args = null; bool flag = false; try { args = new Class409(e.DataReceived); flag = true; } catch (Exception ex) { ex.smethod_1(new object[] { string.Format(Class283.string_10, e.DataReceived) }); } if (flag) { this.class330_0.method_1(args); } }
internal static byte[] smethod_5(DocPicture A_0) { byte[] imageBytes = A_0.ImageBytes; spr⇼ r⇼ = smethod_7(A_0); if (!r⇼.ᜀ()) { if (!A_0.ImageRecord.method_15()) { return(imageBytes); } ImageSize size = new ImageSize(((int)A_0.Size.Width) * 0x319c, ((int)A_0.Size.Height) * 0x319c); if (spr≨.ᜀ(size.WidthPixels, size.HeightPixels)) { return(imageBytes); } ImageFormat png = Class409.smethod_0(A_0.ImageRecord.method_3()); switch (Class783.smethod_1(png)) { case BlipImageType.Emf: case BlipImageType.Wmf: imageBytes = spr᪻.ᜀ(imageBytes, new SizeF((float)size.HorizontalResolution, (float)size.VerticalResolution)); png = ImageFormat.Png; break; } using (spr⊗ r⊗ = new spr⊗(imageBytes)) { r⊗.ᜀ(r⇼); using (MemoryStream stream = new MemoryStream()) { r⊗.ᜀ(stream, smethod_6(png)); imageBytes = sprḆ.ᜀ(stream); } } } return(imageBytes); }
// Token: 0x06001C4C RID: 7244 // RVA: 0x0001753D File Offset: 0x0001573D public bool method_0(Class409 class409_0) { return class409_0.Key == this.keys_0 || class409_0.method_0() == this.keys_0; }
public abstract void Visit(Class409 c);
private static bool smethod_2(byte[] A_0) { return(smethod_3(Class409.smethod_0(A_0))); }
private void method_9(byte[] A_0) { int num = 6; try { if (!Directory.Exists(string_0)) { Directory.CreateDirectory(string_0); } using (Stream stream = File.Create(string.Concat(new object[] { string_0, Path.DirectorySeparatorChar, Path.GetFileName(this.document_0.FileName), BookmarkStart.b("ȫ", num), ++int_0, BookmarkStart.b("ȫ", num), Class238.smethod_3(Class409.smethod_0(A_0)) }))) { stream.Write(A_0, 0, A_0.Length); stream.Flush(); } } catch (Exception exception) { Console.WriteLine(exception.Message); } }
public override void Visit(Class409 c) { }
private string imethod_1(byte[] A_0) { string str; string str2; int num = 3; Guid key = Class968.smethod_0(A_0); if (this.hashtable_0.ContainsKey(key)) { return((string)this.hashtable_0[key]); } ImageFormat format = Class409.smethod_0(A_0); byte[] buffer = A_0; switch (format) { case ImageFormat.Bmp: str = BookmarkStart.b("ᤨᨪ", num); str2 = BookmarkStart.b("䬨䘪崬", num); break; case ImageFormat.Emf: str = BookmarkStart.b("ᤨᴪ", num); str2 = BookmarkStart.b("䰨䘪圬", num); buffer = Class734.smethod_29(A_0); break; case ImageFormat.Gif: str = BookmarkStart.b("ᤨᨪ", num); str2 = BookmarkStart.b("丨䈪䬬", num); break; case ImageFormat.Jpeg: str = BookmarkStart.b("ᤨᤪ", num); str2 = BookmarkStart.b("䌨嬪䨬", num); break; case ImageFormat.Png: str = BookmarkStart.b("ᤨᠪ", num); str2 = BookmarkStart.b("夨䔪䨬", num); break; case ImageFormat.Wmf: str = BookmarkStart.b("ᤨጪ", num); str2 = BookmarkStart.b("帨䘪圬", num); buffer = Class734.smethod_29(A_0); break; case ImageFormat.Tiff: str = BookmarkStart.b("ᤨᠪ", num); str2 = BookmarkStart.b("崨䈪䬬", num); break; default: throw new InvalidOperationException(BookmarkStart.b("簨䔪弬䨮到尲刴夶倸䄺堼嬾慀⩂⡄♆⹈⹊浌㭎⡐⍒ご睖㱘㕚㹜ぞᑠൢᅤɦ᭨६佮ᕰٲݴṶᱺ嵼⡾쪆얈ꮊﲒ래", num)); } string str3 = this.method_11(str, str2, buffer); this.hashtable_0.Add(key, str3); return(str3); }