Click or drag to resize
ImageHelperGetResizedImageData Method (Byte, String, Int32, Int32, Int32)
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: 9.0.0
Syntax
C#
public static byte[] GetResizedImageData(
	byte[] fileBinary,
	string fileExtension,
	int width,
	int height,
	int maxSideSize
)

Parameters

fileBinary
Type: SystemByte
Posted file data
fileExtension
Type: SystemString
Extension of the file
width
Type: SystemInt32
Image required width
height
Type: SystemInt32
Image required height
maxSideSize
Type: SystemInt32
Image required max side size

Return Value

Type: Byte
See Also