Click or drag to resize
CMSDialogHelperGetThumbImageDimensions Method
Gets thumbnail preview image dimensions.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static int[] GetThumbImageDimensions(
	int origHeight,
	int origWidth,
	double maxHeight,
	double maxWidth
)

Parameters

origHeight
Type: SystemInt32
Original image width
origWidth
Type: SystemInt32
Original image height
maxHeight
Type: SystemDouble
Maximal image width
maxWidth
Type: SystemDouble
Maximal image height

Return Value

Type: Int32
See Also