C# Класс Utilities.Media.ImageHelper

Helper class for graphics processing.
Показать файл Открыть проект

Открытые методы

Метод Описание
ConvertToBytes ( Image image ) : byte[]

Converts an image to a byte array.

ConvertToBytes ( Image image, ImageFormat format ) : byte[]

Converts an image to a byte array.

ConvertToImage ( byte content ) : Image

Convert byte arry to an image object.

ConvertToThumbNail ( byte imageContents, int thumbNailWidth, int thumbNailHeigth ) : byte[]

Convert the image contents as a byte[] into a thumbnail represented by another byte[].

GetDimensions ( byte imageContents ) : int>.Tuple

Returns the height and width of the image.

Описание методов

ConvertToBytes() публичный Метод

Converts an image to a byte array.
public ConvertToBytes ( Image image ) : byte[]
image Image Image to convert.
Результат byte[]

ConvertToBytes() публичный Метод

Converts an image to a byte array.
public ConvertToBytes ( Image image, ImageFormat format ) : byte[]
image Image Image to convert.
format System.Drawing.Imaging.ImageFormat The format of the image.
Результат byte[]

ConvertToImage() публичный статический Метод

Convert byte arry to an image object.
public static ConvertToImage ( byte content ) : Image
content byte The bytes representing the image.
Результат Image

ConvertToThumbNail() публичный статический Метод

Convert the image contents as a byte[] into a thumbnail represented by another byte[].
public static ConvertToThumbNail ( byte imageContents, int thumbNailWidth, int thumbNailHeigth ) : byte[]
imageContents byte The byte[] for the original contents.
thumbNailWidth int Width for thumbnail
thumbNailHeigth int Height for thumbnail
Результат byte[]

GetDimensions() публичный статический Метод

Returns the height and width of the image.
public static GetDimensions ( byte imageContents ) : int>.Tuple
imageContents byte Byte array with converted image.
Результат int>.Tuple