DefaultUploadProcessor.ScaleMainImage method
Scales the temporary image with provided upload image options if required based on the options and saves the result to the target upload storage file
protected virtual ScaleImageAsResult? ScaleMainImage(object image, IUploadImageOptions options,
string imageFile)
| parameter | description |
|---|---|
| image | Image object |
| options | Image upload options |
| imageFile | Main image file |
Return Value
The resulting image file path
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | image or options is null |
See Also
- class ScaleImageAsResult
- interface IUploadImageOptions
- class DefaultUploadProcessor