IImageProcessingServiceTryResize Method |
Resizes the specified image.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax bool TryResize(
byte[] image,
int width,
int height,
int quality,
out byte[] resizedImage
)
Parameters
- image
- Type: SystemByte
The image to resize in binary data form. - width
- Type: SystemInt32
The width to resize the image to. - height
- Type: SystemInt32
The height to resize the image to. - quality
- Type: SystemInt32
The quality of the resized image. - resizedImage
- Type: SystemByte
Binary data of resized image if resize is successful. Otherwise null.
Return Value
Type:
Booleantrue if the image was resized. Otherwise
false.
See Also