MediaFileInfoProviderShouldResize Method |
Returns true if image should be scaled down.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 11.0.0
Syntax 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:
BooleanSee Also