AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

AdvantageImageResizer..::..CreateImage Method

Creates a resized image based on the parameters passed in

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public AdvantageImageResizer..::..AdvantageImageResizeResult CreateImage(
	string relativeFileNamePath,
	int width,
	int height,
	bool saveFile
)

Parameters

relativeFileNamePath
Type: String
the relative path location of the image ie (~/assets/website/images/someimage.jpg)
width
Type: Int32
width to resize (can be 0 to ignore)
height
Type: Int32
width to resize (can be 0 to ignore)
saveFile
Type: Boolean
if set to true [save file].

Return Value

AdvantageImageResizeResult