public Stream method_7(int A_0, Document A_1, ImageFormat A_2) { MemoryStream stream = new MemoryStream(); using (Class195 class2 = new Class195()) { class2.method_20(this.method_0()); class2.bool_2 = this.bool_0; class2.method_43(A_1); if (A_2 == ImageFormat.Emf) { return(class2.method_61(A_0, 1, ImageType.Metafile, null)); } Image[] imageArray = class2.method_49(A_0, 1, ImageType.Metafile, null, true); if (((imageArray != null) && (imageArray.Length > A_0)) && (imageArray[A_0] != null)) { imageArray[A_0].Save(stream, A_2); } else { return(null); } } return(stream); }