C# 클래스 Utilities.Media.ImageHelper

Helper class for graphics processing.
파일 보기 프로젝트 열기: feanz/Utilities

공개 메소드들

메소드 설명
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