/// <summary> /// 取得 Aspose.Cells.Picture 的 Image Data /// </summary> /// <param name="picture">Aspose.Cells.Picture</param> /// <returns>Aspose.Cells.Picture 的 Image Data(格式為 byte[])</returns> public static byte[] GetPictureData(Aspose.Cells.Picture picture) { try { PropertyInfo p = picture.GetType().GetProperty("x90c6e45466e5b849", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static); object obj = p.GetValue(picture, null); p = obj.GetType().GetProperty("xe36c96d8c564b382", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static); return (p.GetValue(obj, null) as byte[]); } catch (Exception ex) { throw new Exception(ex.Message); } }