Mercurial > hg > orthanc
diff OrthancFramework/Sources/Images/ImageProcessing.h @ 4083:26efd0404d97 framework
integration mainline->framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Jun 2020 07:39:42 +0200 |
parents | Core/Images/ImageProcessing.h@2e1564f57542 Core/Images/ImageProcessing.h@259c33759937 |
children | bf7b9edf6b81 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/ImageProcessing.h Mon Jun 22 19:04:45 2020 +0200 +++ b/OrthancFramework/Sources/Images/ImageProcessing.h Tue Jun 23 07:39:42 2020 +0200 @@ -204,10 +204,17 @@ static void FitSize(ImageAccessor& target, const ImageAccessor& source); - + + // Resize the image to the given width/height. The resized image + // occupies the entire canvas (aspect ratio is not preserved). static ImageAccessor* FitSize(const ImageAccessor& source, unsigned int width, unsigned int height); + + // Resize an image, but keeps its original aspect ratio. Zeros are + // added around the image to reach the specified size. + static ImageAccessor* FitSizeKeepAspectRatio(const ImageAccessor& source, + unsigned int width, + unsigned int height); }; } -