ImageChecker.CheckSizeConstraints method
namespace: Serenity.Web assembly: Serenity.Net.Services
Checks an image width and height against size constraints
public ImageCheckResult CheckSizeConstraints(int width, int height)
parameter | description |
---|---|
width | Image width. |
height | Image height. |
Return Value
One of ImageCheckResult values. ImageCheckResult.JPEGImage if image size is validated.
See Also
- enum ImageCheckResult
- class ImageChecker