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