Class ImageSizeProvider
- Namespace
- Dynamicweb.Imaging.Providers
- Assembly
- Dynamicweb.Core.dll
Provides image dimensions (width and height) for image files.
public abstract class ImageSizeProvider
- Inheritance
-
ImageSizeProvider
- Inherited Members
Methods
GetSizeFromFile(string)
Gets the image dimensions from the image specified in the path.
public abstract Size GetSizeFromFile(string filePath)
Parameters
filePathstringThe file path.
Returns
GetSizeFromStream(Stream, string)
Gets the image dimensions from the image data stream and image file extension.
public abstract Size GetSizeFromStream(Stream stream, string extension)