Class DrawingUtils
Class DrawingUtils
Inheritance
System.Object
DrawingUtils
Namespace: MediaBrowser.Model.Drawing
Assembly: MediaBrowser.Model.dll
Syntax
public static class DrawingUtils
Methods
Resize(ImageSize, Double, Double, Double, Double)
Resizes a set of dimensions
Declaration
public static ImageSize Resize(ImageSize size, double width, double height, double maxWidth, double maxHeight)
Parameters
Type | Name | Description |
---|---|---|
ImageSize | size | The original size object |
System.Double | width | A new fixed width, if desired |
System.Double | height | A new fixed height, if desired |
System.Double | maxWidth | A max fixed width, if desired |
System.Double | maxHeight | A max fixed height, if desired |
Returns
Type | Description |
---|---|
ImageSize | A new size object |