C# Class DirectoryTraversal.Resize

Inheritance: System.Web.UI.Page
Afficher le fichier Open project: candanbolukbas/Secure-Programming-Samples

Protected Properties

Свойство Type Description
form1 global::System.Web.UI.HtmlControls.HtmlForm

Méthodes publiques

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

Méthodes protégées

Méthode Description
Page_Load ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
DrawText ( String text, Font font, Color textColor, Color backColor ) : Image

Method Details

Page_Load() protected méthode

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

ResizeImage() public static méthode

public static ResizeImage ( Image sourceImage, int maxWidth, int maxHeight ) : Image
sourceImage Image
maxWidth int
maxHeight int
Résultat Image

byteArrayToImage() public méthode

public byteArrayToImage ( byte byteArrayIn ) : Image
byteArrayIn byte
Résultat Image

imageToByteArray() public méthode

public imageToByteArray ( System imageIn ) : byte[]
imageIn System
Résultat 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
Résultat global::System.Web.UI.HtmlControls.HtmlForm