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
aspectRatio
double
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
aspectRatio
string
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
factor
double
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
factor
string
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
format
string
Returns
Height(int)
Set an explicit height.
ITweakResize Height(int height)
Parameters
height
int
Returns
Parameters(string)
Specify custom url parameters for the image, like 'cachebreak=42'
ITweakResize Parameters(string parameters)
Parameters
parameters
string
Returns
Quality(double)
Set the compression quality
ITweakResize Quality(double quality)
Parameters
quality
double
Returns
ResizeMode(string)
Set the resize mode, like 'crop', 'max', etc.
ITweakResize ResizeMode(string resizeMode)
Parameters
resizeMode
string
Returns
ScaleMode(string)
Set scale-mode to allow up-scaling images like up
or both
.
ITweakResize ScaleMode(string scaleMode)
Parameters
scaleMode
string
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
width
int