Exemplo n.º 1
0
 private static byte[] DoImgConvert(byte[] data, ref TXlsImgType imgType)
 {
     using (MemoryStream DataStream = new MemoryStream(data))
     {
         using (MemoryStream Result = new MemoryStream())
         {
             using (Image Img = ImageExtender.FromStream(DataStream))
             {
                 Img.Save(Result, ImageFormat.Png);
                 imgType = TXlsImgType.Png;
                 return(Result.ToArray());
             }
         }
     }
 }
Exemplo n.º 2
0
 private static Image DoGetImage(Stream aStream)
 {
     return(ImageExtender.FromStream(aStream));
 }