Class ImageResizerPlugin
Allows resizing images on the fly.
Implements
Inherited Members
Namespace: StrixMusic.Sdk.Plugins.ImageResizer
Assembly: StrixMusic.Sdk.dll
Syntax
public class ImageResizerPlugin : SdkModelPlugin, IModelPlugin
Constructors
| Improve this Doc View SourceImageResizerPlugin(Func<(double? Width, double? Height), (double? Width, double? Height)>)
Initializes a new instance of the ImageResizerPlugin class.
Declaration
public ImageResizerPlugin(Func<(double? Width, double? Height), (double? Width, double? Height)> transformSize)
Parameters
Type | Name | Description |
---|---|---|
Func<(double? Width, double? Height), (double? Width, double? Height)> | transformSize | A delegate that is called to determine the new sizes for an image. Return a different size than what you're given to force a resize. |