C# Class DirectoryTraversal.Resize

Inheritance: System.Web.UI.Page
显示文件 Open project: candanbolukbas/Secure-Programming-Samples

Protected Properties

Property Type Description
form1 global::System.Web.UI.HtmlControls.HtmlForm

Public Methods

Method Description
ResizeImage ( Image sourceImage, int maxWidth, int maxHeight ) : Image
byteArrayToImage ( byte byteArrayIn ) : Image
imageToByteArray ( System imageIn ) : byte[]

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void

Private Methods

Method Description
DrawText ( String text, Font font, Color textColor, Color backColor ) : Image

Method Details

Page_Load() protected method

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

ResizeImage() public static method

public static ResizeImage ( Image sourceImage, int maxWidth, int maxHeight ) : Image
sourceImage Image
maxWidth int
maxHeight int
return Image

byteArrayToImage() public method

public byteArrayToImage ( byte byteArrayIn ) : Image
byteArrayIn byte
return Image

imageToByteArray() public method

public imageToByteArray ( System imageIn ) : byte[]
imageIn System
return byte[]

Property Details

form1 protected_oe property

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