C# Class N2.Management.Files.UploadedFilesResizer

Inheritance: IAutoStart
Show file Open project: bherila/n2cms Class Usage Examples

Public Methods

Method Description
CreateSize ( N2.Web.Url virtualPath, byte image, N2.Configuration.ImageSizeElement size ) : void
GetImageBytes ( string virtualPath ) : byte[]
IsResizableImagePath ( string imageUrl ) : bool
Start ( ) : void
Stop ( ) : void
UploadedFilesResizer ( IFileSystem files, ImageResizer resizer, N2.Configuration.EditSection config ) : System.IO

Private Methods

Method Description
IsResizedPath ( string path ) : bool
files_FileCopied ( object sender, FileEventArgs e ) : void
files_FileDeleted ( object sender, FileEventArgs e ) : void
files_FileMoved ( object sender, FileEventArgs e ) : void
files_FileWritten ( object sender, FileEventArgs e ) : void

Method Details

CreateSize() public method

public CreateSize ( N2.Web.Url virtualPath, byte image, N2.Configuration.ImageSizeElement size ) : void
virtualPath N2.Web.Url
image byte
size N2.Configuration.ImageSizeElement
return void

GetImageBytes() public method

public GetImageBytes ( string virtualPath ) : byte[]
virtualPath string
return byte[]

IsResizableImagePath() public method

public IsResizableImagePath ( string imageUrl ) : bool
imageUrl string
return bool

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UploadedFilesResizer() public method

public UploadedFilesResizer ( IFileSystem files, ImageResizer resizer, N2.Configuration.EditSection config ) : System.IO
files IFileSystem
resizer N2.Web.Drawing.ImageResizer
config N2.Configuration.EditSection
return System.IO