Interface ITweakResize
WIP - ATM just the properties which are needed for the ImageService
[InternalApi_DoNotUse_MayChangeWithoutNotice("New v18.03, still WIP")]
public interface ITweakResize
Remarks
Introduced v18.03, still WIP
Methods
AspectRatio(double)
The aspect ratio to use for resizing - for width to height.
ITweakResize AspectRatio(double aspectRatio)
Parameters
aspectRatiodouble
Returns
AspectRatio(string)
The aspect ratio to use for resizing - for width to height. Can also be a ratio or formula, like "1/2" or "1:2" so it can accept CSS-like values.
ITweakResize AspectRatio(string aspectRatio)
Parameters
aspectRatiostring
Returns
Factor(double)
A multiplier, usually used to create urls which resize to a part of the default content-size. Like 0.5.
ITweakResize Factor(double factor)
Parameters
factordouble
Returns
Factor(string)
A multiplier, as string usually used to create urls which resize to a part of the default content-size. Like 0.5. Can also be a ratio or formula, like "1/2" or "1:2" so it can accept CSS-like values.
ITweakResize Factor(string factor)
Parameters
factorstring
Returns
Format(string)
Set the format of the image, like 'jpg', 'png', etc. Will only accept known formats, otherwise will ignore the value.
ITweakResize Format(string format)
Parameters
formatstring
Returns
Height(int)
Set an explicit height.
ITweakResize Height(int height)
Parameters
heightint
Returns
Parameters(string)
Specify custom url parameters for the image, like 'cachebreak=42'
ITweakResize Parameters(string parameters)
Parameters
parametersstring
Returns
Quality(double)
Set the compression quality
ITweakResize Quality(double quality)
Parameters
qualitydouble
Returns
ResizeMode(string)
Set the resize mode, like 'crop', 'max', etc.
ITweakResize ResizeMode(string resizeMode)
Parameters
resizeModestring
Returns
ScaleMode(string)
Set scale-mode to allow up-scaling images like up or both.
ITweakResize ScaleMode(string scaleMode)
Parameters
scaleModestring
Returns
Width(int)
Optional width parameter.
Cannot be used if factor is set (will take precedence).
Usually takes the default from the settings.
ITweakResize Width(int width)
Parameters
widthint