Content Studio Web Content Management System
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
The image file name with query string parameters appended after it
This method was added in Content Studio version 5.7
[This is preliminary documentation and is subject to change.]
Builds the URL.
Namespace: ContentStudio.Site.HttpModules
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public static string BuildUrl( string filename, int width = 0, int height = 0, Rectangle cropInfo = null, long compression = 0, double ratio = 0, DocumentReaderRatioCropPosition ratioCropPosition = DocumentReaderRatioCropPosition.Center, bool useSmartResize = false, double pixelRatio = 1, Point ratioCropPositionCenterPoint = null, int maxWidth = 0, int maxHeight = 0 )
Parameters
- filename
- Type: SystemString
The filename. - width (Optional)
- Type: SystemInt32
The width of the processed image. - height (Optional)
- Type: SystemInt32
The height of the processed image. - cropInfo (Optional)
- Type: System.DrawingRectangle
The cropping rectangle. - compression (Optional)
- Type: SystemInt64
The compression. - ratio (Optional)
- Type: SystemDouble
The aspect ratio eg. 640/400. - ratioCropPosition (Optional)
- Type: ContentStudio.DocumentDocumentReaderRatioCropPosition
The ratio crop position. - useSmartResize (Optional)
- Type: SystemBoolean
if set to true the image processor uses smart resizing. - pixelRatio (Optional)
- Type: SystemDouble
The pixel ratio. - ratioCropPositionCenterPoint (Optional)
- Type: System.DrawingPoint
The ratio crop position center point. - maxWidth (Optional)
- Type: SystemInt32
The maximum width. - maxHeight (Optional)
- Type: SystemInt32
The maximum height.
Return Value
Type: StringThe image file name with query string parameters appended after it
Remarks
See Also