예제 #1
0
        protected Stream GenerateThumbnail(MemoryStream image)
        {
            image.Position = 0;
            var resizedStream = new MemoryStream();
            var thumb         = new ImageProcessorCore.Image(image);

            thumb.Resize(400, thumb.Height * 400 / thumb.Width).Save(resizedStream);
            resizedStream.Position = 0;
            return(resizedStream);
        }