Пример #1
0
        public static byte[] CreateAndResizePhotoFromJpeg(Jpeg photo, int maxDimension, string mimeType)
        {
            var stream = photo.SaveResized(maxDimension, 100, mimeType);

            return(stream.ToArray());
        }
Пример #2
0
        public static byte[] CreateAndSquarePhotoFromJpeg(Jpeg photo, int maxDimension)
        {
            var stream = photo.SaveSquared(maxDimension, 100);

            return(stream.ToArray());
        }