Method | Description | |
---|---|---|
ResizeImage ( |
Returns a new bitmap resized to fix a maximum size while still maintaining the correct aspect ratio.
|
|
ResizeImage ( Stream originalImageStream, |
Returns a stream containing a resized image with original aspect ratio.
|
public static ResizeImage ( |
||
originalImage | The image to resize. | |
maxWidthPixels | int | |
maxHeightPixels | int | |
return |
public static ResizeImage ( Stream originalImageStream, |
||
originalImageStream | Stream | The image to resize. |
format | The image format. | |
maxSizePixels | int | The maximum allowed height or width in pixels. |
return |