ImageHelper GetResizedImageData Method ( Byte , String, Int32, Int32, Int32)Kentico 8.0 API Reference
If posted file is image, resizes it to the required dimensions if possible and returns resized data. If it is not image, original data are returned.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

fileBinary
Type:  OnlineSystem Byte 
Posted file data
fileExtension
Type: OnlineSystem String
Extension of the file
width
Type: OnlineSystem Int32
Image required width
height
Type: OnlineSystem Int32
Image required height
maxSideSize
Type: OnlineSystem Int32
Image required max side size

Return Value

Type:  OnlineByte 
See Also