C# Class Imazen.Crop.CropImage

Inheritance: System.Web.UI.WebControls.CompositeControl, INamingContainer
Exibir arquivo Open project: nathanaeljones/cropimage

Private Properties

Property Type Description

Public Methods

Method Description
Crop ( string destPath ) : void

Crops the original image and saves it to the specified path. If the specified path doesn't contain a valid image extension, it will be appended

Crop ( string destPath, bool appendCorrectExtension ) : void

Crops the original image and saves it to the specified path.

GetUriStream ( Uri uri ) : Stream

Gets a stream from the given HTTP URI. No redirect support

RenderBeginTag ( System.Web.UI.HtmlTextWriter writer ) : void

We don't render anything for this control, it just ties to other controls.

RenderEndTag ( System.Web.UI.HtmlTextWriter writer ) : void

We don't render anything for this control, it just ties to other controls.

Protected Methods

Method Description
AddFileReferences ( ) : void

Adds the jQuery, jCrop, webcropimage.js and jCrop CSS references as specified in the matching properties.

CreateChildControls ( ) : void

OnLoad ( EventArgs e ) : void

Method Details

AddFileReferences() protected method

Adds the jQuery, jCrop, webcropimage.js and jCrop CSS references as specified in the matching properties.
protected AddFileReferences ( ) : void
return void

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

Crop() public method

Crops the original image and saves it to the specified path. If the specified path doesn't contain a valid image extension, it will be appended
public Crop ( string destPath ) : void
destPath string
return void

Crop() public method

Crops the original image and saves it to the specified path.
public Crop ( string destPath, bool appendCorrectExtension ) : void
destPath string
appendCorrectExtension bool If true, the appropriate image extension will be added
return void

GetUriStream() public method

Gets a stream from the given HTTP URI. No redirect support
public GetUriStream ( Uri uri ) : Stream
uri System.Uri
return Stream

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

RenderBeginTag() public method

We don't render anything for this control, it just ties to other controls.
public RenderBeginTag ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void

RenderEndTag() public method

We don't render anything for this control, it just ties to other controls.
public RenderEndTag ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void