Пример #1
0
 public ImageCacheEntry(byte[] imageBytes)
 {
     using (Image image = Imaging.ImageFromBytes(imageBytes)) {
         ContentType   = Imaging.GetContentTypeByImageFormat(image.RawFormat);
         OriginalImage = imageBytes;
         Images.Add(new Size(image.Width, image.Height), imageBytes);
     }
 }