C# Class mobSocial.Services.MediaServices.MobSocialImageProcessor

Inheritance: IMobSocialImageProcessor
显示文件 Open project: mobsoftware/mobsocial

Public Methods

Method Description
ResizeImage ( byte imageBytes, int width, int height ) : byte[]
WriteBytesToImage ( byte imageBytes, string filePath, ImageFormat imageFormat ) : void
WriteResizedImage ( byte imageBytes, int width, int height, string filePath, ImageFormat imageFormat ) : void
WriteResizedImage ( string sourceFile, string destinationFile, int width, int height, ImageFormat imageFormat ) : void

Method Details

ResizeImage() public method

public ResizeImage ( byte imageBytes, int width, int height ) : byte[]
imageBytes byte
width int
height int
return byte[]

WriteBytesToImage() public method

public WriteBytesToImage ( byte imageBytes, string filePath, ImageFormat imageFormat ) : void
imageBytes byte
filePath string
imageFormat System.Drawing.Imaging.ImageFormat
return void

WriteResizedImage() public method

public WriteResizedImage ( byte imageBytes, int width, int height, string filePath, ImageFormat imageFormat ) : void
imageBytes byte
width int
height int
filePath string
imageFormat System.Drawing.Imaging.ImageFormat
return void

WriteResizedImage() public method

public WriteResizedImage ( string sourceFile, string destinationFile, int width, int height, ImageFormat imageFormat ) : void
sourceFile string
destinationFile string
width int
height int
imageFormat System.Drawing.Imaging.ImageFormat
return void