Click or drag to resize
MediaFileInfoProviderShouldResize Method
Returns true if image should be scaled down.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
public static bool ShouldResize(
	int maxSideSize,
	int width,
	int height,
	int imageWidth,
	int imageHeight
)

Parameters

maxSideSize
Type: SystemInt32
Max side size
width
Type: SystemInt32
Width
height
Type: SystemInt32
Height
imageWidth
Type: SystemInt32
Image width
imageHeight
Type: SystemInt32
Image height

Return Value

Type: Boolean
See Also