C# 클래스 ImageManager.ImageService

상속: IImageService
파일 보기 프로젝트 열기: cimex/ImageManager 1 사용 예제들

공개 메소드들

메소드 설명
Delete ( string fullFilePath ) : void
Get ( string relativeFilePath, int maxSideSize ) : Bitmap
Get ( string relativeFilePath, int maxWidth, int maxHeight ) : Bitmap
Get ( string relativeFilePath, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor ) : Bitmap
Get ( Stream file, int maxSideSize, OutputFormat outputFormat ) : Stream
Get ( Stream file, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor, OutputFormat outputFormat ) : Stream
Get ( Stream file, int maxWidth, int maxHeight, OutputFormat outputFormat ) : Stream
Get ( string relativeFilePath, int maxSideSize, OutputFormat outputFormat ) : byte[]
Get ( string relativeFilePath, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor, OutputFormat outputFormat ) : byte[]
Get ( string relativeFilePath, int maxWidth, int maxHeight, OutputFormat outputFormat ) : byte[]
GetAndCrop ( string relativeFilePath, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio ) : Bitmap

This returns a specified crop

GetAndCrop ( Stream file, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio, OutputFormat outputFormat ) : Stream

This returns a specified crop

GetAndCrop ( string relativeFilePath, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio, OutputFormat outputFormat ) : byte[]

This returns a specified crop

GetCached ( string relativeFilePath, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor, OutputFormat outputFormat ) : byte[]
ImageService ( IFileService fileService, HttpContext context ) : System
SaveForWeb ( string sourceFileName, string relativeSourcePath, string relativeTargetPath ) : bool

비공개 메소드들

메소드 설명
CreateThumbnail ( Image image, int defaultWidth, int defaultHeight ) : Bitmap
getDefault ( int width, int height ) : Bitmap
loadImage ( Stream file ) : Image
loadImage ( string relativeFilePath ) : Image

메소드 상세

Delete() 공개 메소드

public Delete ( string fullFilePath ) : void
fullFilePath string
리턴 void

Get() 공개 메소드

public Get ( string relativeFilePath, int maxSideSize ) : Bitmap
relativeFilePath string
maxSideSize int
리턴 System.Drawing.Bitmap

Get() 공개 메소드

public Get ( string relativeFilePath, int maxWidth, int maxHeight ) : Bitmap
relativeFilePath string
maxWidth int
maxHeight int
리턴 System.Drawing.Bitmap

Get() 공개 메소드

public Get ( string relativeFilePath, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor ) : Bitmap
relativeFilePath string
width int
height int
imageMod ImageMod
hexBackgroundColour string
anchor AnchorPosition
리턴 System.Drawing.Bitmap

Get() 공개 메소드

public Get ( Stream file, int maxSideSize, OutputFormat outputFormat ) : Stream
file Stream
maxSideSize int
outputFormat OutputFormat
리턴 Stream

Get() 공개 메소드

public Get ( Stream file, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor, OutputFormat outputFormat ) : Stream
file Stream
width int
height int
imageMod ImageMod
hexBackgroundColour string
anchor AnchorPosition
outputFormat OutputFormat
리턴 Stream

Get() 공개 메소드

public Get ( Stream file, int maxWidth, int maxHeight, OutputFormat outputFormat ) : Stream
file Stream
maxWidth int
maxHeight int
outputFormat OutputFormat
리턴 Stream

Get() 공개 메소드

public Get ( string relativeFilePath, int maxSideSize, OutputFormat outputFormat ) : byte[]
relativeFilePath string
maxSideSize int
outputFormat OutputFormat
리턴 byte[]

Get() 공개 메소드

public Get ( string relativeFilePath, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor, OutputFormat outputFormat ) : byte[]
relativeFilePath string
width int
height int
imageMod ImageMod
hexBackgroundColour string
anchor AnchorPosition
outputFormat OutputFormat
리턴 byte[]

Get() 공개 메소드

public Get ( string relativeFilePath, int maxWidth, int maxHeight, OutputFormat outputFormat ) : byte[]
relativeFilePath string
maxWidth int
maxHeight int
outputFormat OutputFormat
리턴 byte[]

GetAndCrop() 공개 메소드

This returns a specified crop
public GetAndCrop ( string relativeFilePath, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio ) : Bitmap
relativeFilePath string e.g. asdf/asdf.jpg
targetWidth int
targetHeight int
widthRatio double
heightRatio double
leftRatio double
topRatio double
리턴 System.Drawing.Bitmap

GetAndCrop() 공개 메소드

This returns a specified crop
public GetAndCrop ( Stream file, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio, OutputFormat outputFormat ) : Stream
file Stream
targetWidth int
targetHeight int
widthRatio double
heightRatio double
leftRatio double
topRatio double
outputFormat OutputFormat
리턴 Stream

GetAndCrop() 공개 메소드

This returns a specified crop
public GetAndCrop ( string relativeFilePath, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio, OutputFormat outputFormat ) : byte[]
relativeFilePath string e.g. asdf/asdf.jpg
targetWidth int
targetHeight int
widthRatio double
heightRatio double
leftRatio double
topRatio double
outputFormat OutputFormat
리턴 byte[]

GetCached() 공개 메소드

public GetCached ( string relativeFilePath, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor, OutputFormat outputFormat ) : byte[]
relativeFilePath string
width int
height int
imageMod ImageMod
hexBackgroundColour string
anchor AnchorPosition
outputFormat OutputFormat
리턴 byte[]

ImageService() 공개 메소드

public ImageService ( IFileService fileService, HttpContext context ) : System
fileService IFileService
context System.Web.HttpContext
리턴 System

SaveForWeb() 공개 메소드

public SaveForWeb ( string sourceFileName, string relativeSourcePath, string relativeTargetPath ) : bool
sourceFileName string
relativeSourcePath string
relativeTargetPath string
리턴 bool