Search Results for

    Show / Hide Table of Contents
    View Source

    Class SvgDimensionExtractor

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Media
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class SvgDimensionExtractor : ISvgDimensionExtractor

    Constructors

    View Source

    SvgDimensionExtractor(ILogger<SvgDimensionExtractor>)

    Initializes a new instance of the SvgDimensionExtractor class.

    Declaration
    public SvgDimensionExtractor(ILogger<SvgDimensionExtractor> logger)
    Parameters
    Type Name Description
    ILogger<SvgDimensionExtractor> logger

    The logger.

    Methods

    View Source

    GetDimensions(Stream)

    Gets the dimensions.

    Declaration
    public 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, null.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX