Table of Contents

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 string

Absolute file path

Returns

ImageAttributes

Image attributes

GetAttributesFromStream(Stream, string)

Gets image attributes from file stream

public static ImageAttributes GetAttributesFromStream(Stream stream, string extension)

Parameters

stream Stream

File stream

extension string

File extension

Returns

ImageAttributes

Image attributes

GetMetadataFromFile(string)

Gets image metadata from a file.

public static ImageMetadata GetMetadataFromFile(string filePath)

Parameters

filePath string

Image file path.

Returns

ImageMetadata

Metadata for the image.

GetMetadataFromStream(Stream, string)

Gets image metadata.

public static ImageMetadata GetMetadataFromStream(Stream stream, string extension)

Parameters

stream Stream

Image file stream.

extension string

Image file extension

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 string

The file path.

Returns

Size

Dimensions for image from the path if exists, otherwise Empty

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

stream Stream

Image file stream

extension string

Image file extension

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 string

Metadata tag group

Returns

IDictionary<string, ImageMetadataTag>

Collection of metadata tags

To top