Exemplo n.º 1
0
 public static Size GetPictureSize(this IPictureService pictureService, Picture picture)
 {
     return(ImageHeader.GetDimensions(pictureService.OpenPictureStream(picture), picture.MimeType, false));
 }
Exemplo n.º 2
0
 public virtual Size GetPictureSize(byte[] pictureBinary, string mimeType = null)
 {
     return(ImageHeader.GetDimensions(pictureBinary, mimeType));
 }