Class Image
- Namespace
- Dynamicweb.Imaging
- Assembly
- Dynamicweb.Core.dll
This class contains function to handle images and other media like swf and mov files.
public static class Image
- Inheritance
-
Image
- Inherited Members
Methods
GetAttributesFromFile(string)
Gets image attributes from image file
public static ImageAttributes GetAttributesFromFile(string filePath)
Parameters
filePath
stringAbsolute file path
Returns
- ImageAttributes
Image attributes
GetAttributesFromStream(Stream, string)
Gets image attributes from file stream
public static ImageAttributes GetAttributesFromStream(Stream stream, string extension)
Parameters
Returns
- ImageAttributes
Image attributes
GetMetadataFromFile(string)
Gets image metadata from a file.
public static ImageMetadata GetMetadataFromFile(string filePath)
Parameters
filePath
stringImage file path.
Returns
- ImageMetadata
Metadata for the image.
GetMetadataFromStream(Stream, string)
Gets image metadata.
public static ImageMetadata GetMetadataFromStream(Stream stream, string extension)
Parameters
Returns
- ImageMetadata
Metadata for the image.
GetSizeFromFile(string)
Gets the image dimensions from the image specified in the path.
public static Size GetSizeFromFile(string filePath)
Parameters
filePath
stringThe file path.
Returns
GetSizeFromStream(Stream, string)
Gets the image dimensions from the image data stream and image file extension.
public static Size GetSizeFromStream(Stream stream, string extension)
Parameters
Returns
- Size
Dimensions for image
GetTagGroups()
Gets a collection of available metadata tag groups.
public static IDictionary<string, ImageMetadataTagGroup> GetTagGroups()
Returns
- IDictionary<string, ImageMetadataTagGroup>
Collection of metadata tag groups
GetTagsByGroup(string)
Gets a collection of available metadata tags for a given metadata tag group.
public static IDictionary<string, ImageMetadataTag> GetTagsByGroup(string group)
Parameters
group
stringMetadata tag group
Returns
- IDictionary<string, ImageMetadataTag>
Collection of metadata tags