C# 클래스 Blog.Common.Utils.Helpers.ImageHelper

상속: IImageHelper
파일 보기 프로젝트 열기: jsnmgpnty/Blogness2.0 1 사용 예제들

공개 메소드들

메소드 설명
ByteArrayToImage ( byte byteArray ) : Image
CreateGifThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool
CreateThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool
CreateVideoThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool
GenerateImagePath ( int id, string guid, string storageRoot ) : string
GetComputedImageSize ( int width, int height ) : Size
ImageToByteArray ( Image image ) : byte[]
ResizeImage ( Image mg, Size newSize ) : Image
SaveImage ( Image image, string destinationPath, string fileName ) : bool
SaveImage ( byte bytes, string destinationPath, string fileName ) : bool

비공개 메소드들

메소드 설명
GetEncoder ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

메소드 상세

ByteArrayToImage() 공개 메소드

public ByteArrayToImage ( byte byteArray ) : Image
byteArray byte
리턴 Image

CreateGifThumbnail() 공개 메소드

public CreateGifThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool
filename string
destinationPath string
thumbnailPrefix string
리턴 bool

CreateThumbnail() 공개 메소드

public CreateThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool
filename string
destinationPath string
thumbnailPrefix string
리턴 bool

CreateVideoThumbnail() 공개 메소드

public CreateVideoThumbnail ( string filename, string destinationPath, string thumbnailPrefix ) : bool
filename string
destinationPath string
thumbnailPrefix string
리턴 bool

GenerateImagePath() 공개 메소드

public GenerateImagePath ( int id, string guid, string storageRoot ) : string
id int
guid string
storageRoot string
리턴 string

GetComputedImageSize() 공개 메소드

public GetComputedImageSize ( int width, int height ) : Size
width int
height int
리턴 System.Drawing.Size

ImageToByteArray() 공개 메소드

public ImageToByteArray ( Image image ) : byte[]
image Image
리턴 byte[]

ResizeImage() 공개 메소드

public ResizeImage ( Image mg, Size newSize ) : Image
mg Image
newSize System.Drawing.Size
리턴 Image

SaveImage() 공개 메소드

public SaveImage ( Image image, string destinationPath, string fileName ) : bool
image Image
destinationPath string
fileName string
리턴 bool

SaveImage() 공개 메소드

public SaveImage ( byte bytes, string destinationPath, string fileName ) : bool
bytes byte
destinationPath string
fileName string
리턴 bool