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); }
internal Class1077(Interface0 A_0, Document A_1) { this.interface0_0 = A_0; this.class783_0 = new Class783(A_1, new Class71(A_0)); }