Class ImageService
Implements operations for and represents the image service.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Engine.Images
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
[Obsolete("The old image system based on MetaData Plus is obsolete. You should use the new asset/media system in Episerver CMS instead. Will remain at least until January 2019")]
public class ImageService
Constructors
ImageService()
Declaration
public ImageService()
Properties
Provider
Gets the provider.
Declaration
public ImageProvider Provider { get; }
Property Value
Type | Description |
---|---|
ImageProvider | The provider. |
Providers
Gets the providers.
Declaration
public ImageProviderCollection Providers { get; }
Property Value
Type | Description |
---|---|
ImageProviderCollection | The providers. |
Methods
Exists(String)
Existses the specified name.
Declaration
public static bool Exists(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveImage(String)
Removes the image.
Declaration
public static void RemoveImage(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
RetrieveImage(String)
Retrieves the image.
Declaration
public static Image RetrieveImage(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Drawing.Image |
RetrieveImageUrl(String)
Retrieves the thumbnail image URL.
Declaration
public static string RetrieveImageUrl(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.String |
RetrieveThumbnailImageUrl(String)
Retrieves the thumbnail image URL.
Declaration
public static string RetrieveThumbnailImageUrl(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.String |
SaveImage(String, Byte[])
Saves the image.
Declaration
public static void SaveImage(string name, byte[] image)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Byte[] | image | The image. |
SaveImage(String, Byte[], ImageFormat)
Saves the image.
Declaration
public static void SaveImage(string name, byte[] image, ImageFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Byte[] | image | The image. |
System.Drawing.Imaging.ImageFormat | format | The format. |
SaveImage(String, Byte[], String)
Saves the image.
Declaration
public static void SaveImage(string name, byte[] image, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Byte[] | image | The image. |
System.String | contentType | Type of the content. |
SaveImage(String, Image)
Saves the image.
Declaration
public static void SaveImage(string name, Image image)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Drawing.Image | image | The image. |
SaveImage(String, Image, ImageFormat)
Saves the image.
Declaration
public static void SaveImage(string name, Image image, ImageFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Drawing.Image | image | The image. |
System.Drawing.Imaging.ImageFormat | format | The format. |
SaveImage(String, Image, String)
Saves the image.
Declaration
public static void SaveImage(string name, Image image, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Drawing.Image | image | The image. |
System.String | contentType | Type of the content. |