C# Class ScrewTurn.Wiki.ImageEditor

Inheritance: BasePage
显示文件 Open project: mono/ScrewTurnWiki

Protected Properties

Property Type Description
btnCancel global::System.Web.UI.WebControls.Button
btnPreview global::System.Web.UI.WebControls.LinkButton
btnSave global::System.Web.UI.WebControls.Button
chkAspectRatio global::System.Web.UI.WebControls.CheckBox
chkNewName global::Anthem.CheckBox
frmImageEditor global::System.Web.UI.HtmlControls.HtmlForm
imgPreview global::System.Web.UI.WebControls.Image
lblCurrentSize global::System.Web.UI.WebControls.Literal
lblCurrentSizeInfo global::System.Web.UI.WebControls.Literal
lblCurrentSizePixels global::System.Web.UI.WebControls.Literal
lblDimensions global::System.Web.UI.WebControls.Literal
lblOptions global::System.Web.UI.WebControls.Label
lblResult global::System.Web.UI.WebControls.Label
lblRotate global::System.Web.UI.WebControls.Literal
lblScale global::Anthem.Label
lblScalePost global::System.Web.UI.WebControls.Label
lblScalePre global::System.Web.UI.WebControls.Label
lblSizePixels global::System.Web.UI.WebControls.Literal
rdo180 global::System.Web.UI.WebControls.RadioButton
rdo90CCW global::System.Web.UI.WebControls.RadioButton
rdo90CW global::System.Web.UI.WebControls.RadioButton
rdoJpegHigh global::Anthem.RadioButton
rdoJpegMedium global::Anthem.RadioButton
rdoNoRotation global::System.Web.UI.WebControls.RadioButton
rdoPercentage global::System.Web.UI.WebControls.RadioButton
rdoPixel global::System.Web.UI.WebControls.RadioButton
rdoPng global::Anthem.RadioButton
txtHeight global::System.Web.UI.WebControls.TextBox
txtNewName global::Anthem.TextBox
txtPercentage global::System.Web.UI.WebControls.TextBox
txtWidth global::System.Web.UI.WebControls.TextBox

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
btnPreview_Click ( object sender, EventArgs e ) : void
btnSave_Click ( object sender, EventArgs e ) : void
chkNewName_CheckedChanged ( object sender, EventArgs e ) : void
rdoFormat_CheckedChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
GetCurrentFormat ( ) : string
GetEncoderInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo
GetImageRectangle ( int targetW, int targetH, int w, int h, bool swapped ) : Rectangle
GetSelectedRotation ( ) : int
ResizeImage ( ) : void
SetInputData ( ) : void
SetProvider ( ) : void

Method Details

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnPreview_Click() protected method

protected btnPreview_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnSave_Click() protected method

protected btnSave_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

chkNewName_CheckedChanged() protected method

protected chkNewName_CheckedChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

rdoFormat_CheckedChanged() protected method

protected rdoFormat_CheckedChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

btnCancel protected_oe property

btnCancel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnCancel
return global::System.Web.UI.WebControls.Button

btnPreview protected_oe property

btnPreview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.LinkButton btnPreview
return global::System.Web.UI.WebControls.LinkButton

btnSave protected_oe property

btnSave control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnSave
return global::System.Web.UI.WebControls.Button

chkAspectRatio protected_oe property

chkAspectRatio control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.CheckBox chkAspectRatio
return global::System.Web.UI.WebControls.CheckBox

chkNewName protected_oe property

chkNewName control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.CheckBox chkNewName
return global::Anthem.CheckBox

frmImageEditor protected_oe property

frmImageEditor control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlForm frmImageEditor
return global::System.Web.UI.HtmlControls.HtmlForm

imgPreview protected_oe property

imgPreview control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Image imgPreview
return global::System.Web.UI.WebControls.Image

lblCurrentSize protected_oe property

lblCurrentSize control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblCurrentSize
return global::System.Web.UI.WebControls.Literal

lblCurrentSizeInfo protected_oe property

lblCurrentSizeInfo control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblCurrentSizeInfo
return global::System.Web.UI.WebControls.Literal

lblCurrentSizePixels protected_oe property

lblCurrentSizePixels control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblCurrentSizePixels
return global::System.Web.UI.WebControls.Literal

lblDimensions protected_oe property

lblDimensions control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblDimensions
return global::System.Web.UI.WebControls.Literal

lblOptions protected_oe property

lblOptions control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblOptions
return global::System.Web.UI.WebControls.Label

lblResult protected_oe property

lblResult control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblResult
return global::System.Web.UI.WebControls.Label

lblRotate protected_oe property

lblRotate control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblRotate
return global::System.Web.UI.WebControls.Literal

lblScale protected_oe property

lblScale control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Label lblScale
return global::Anthem.Label

lblScalePost protected_oe property

lblScalePost control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblScalePost
return global::System.Web.UI.WebControls.Label

lblScalePre protected_oe property

lblScalePre control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblScalePre
return global::System.Web.UI.WebControls.Label

lblSizePixels protected_oe property

lblSizePixels control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblSizePixels
return global::System.Web.UI.WebControls.Literal

rdo180 protected_oe property

rdo180 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RadioButton rdo180
return global::System.Web.UI.WebControls.RadioButton

rdo90CCW protected_oe property

rdo90CCW control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RadioButton rdo90CCW
return global::System.Web.UI.WebControls.RadioButton

rdo90CW protected_oe property

rdo90CW control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RadioButton rdo90CW
return global::System.Web.UI.WebControls.RadioButton

rdoJpegHigh protected_oe property

rdoJpegHigh control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.RadioButton rdoJpegHigh
return global::Anthem.RadioButton

rdoJpegMedium protected_oe property

rdoJpegMedium control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.RadioButton rdoJpegMedium
return global::Anthem.RadioButton

rdoNoRotation protected_oe property

rdoNoRotation control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RadioButton rdoNoRotation
return global::System.Web.UI.WebControls.RadioButton

rdoPercentage protected_oe property

rdoPercentage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RadioButton rdoPercentage
return global::System.Web.UI.WebControls.RadioButton

rdoPixel protected_oe property

rdoPixel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.RadioButton rdoPixel
return global::System.Web.UI.WebControls.RadioButton

rdoPng protected_oe property

rdoPng control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.RadioButton rdoPng
return global::Anthem.RadioButton

txtHeight protected_oe property

txtHeight control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txtHeight
return global::System.Web.UI.WebControls.TextBox

txtNewName protected_oe property

txtNewName control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.TextBox txtNewName
return global::Anthem.TextBox

txtPercentage protected_oe property

txtPercentage control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txtPercentage
return global::System.Web.UI.WebControls.TextBox

txtWidth protected_oe property

txtWidth control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.TextBox txtWidth
return global::System.Web.UI.WebControls.TextBox