Interface ISvgDimensionExtractor
Extracts image dimensions from an SVG stream.
Namespace: Umbraco.Cms.Core.Media
Assembly: Umbraco.Core.dll
Syntax
public interface ISvgDimensionExtractor
Methods
View SourceGetDimensions(Stream)
Gets the dimensions.
Declaration
Size? GetDimensions(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
Returns
| Type | Description |
|---|---|
| Size? | The dimensions of the image if the stream was parsable; otherwise, |