SizeConstraintHeight Method |
Creates a new size constraint that makes the image resize to the specified height. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
Namespace: Kentico.Content.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax public static SizeConstraint Height(
int height
)
Parameters
- height
- Type: SystemInt32
The height of the resized image.
Return Value
Type:
SizeConstraintThe new size constraint that makes the image resize to the specified height.
Exceptions See Also