C# Class Accord.Controls.ImageBox

Displays images in a similar way to System.Windows.Forms.MessageBox.
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Show ( Image image ) : DialogResult

Displays an image on the screen.

Show ( Image image, PictureBoxSizeMode sizeMode ) : DialogResult

Displays an image on the screen.

Show ( Image image, PictureBoxSizeMode sizeMode, Color backColor ) : DialogResult

Displays an image on the screen.

Show ( Image image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( Image image, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( String title, double image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( UnmanagedImage image ) : DialogResult

Displays an image on the screen.

Show ( UnmanagedImage image, PictureBoxSizeMode sizeMode ) : DialogResult

Displays an image on the screen.

Show ( double image ) : DialogResult

Displays an image on the screen.

Show ( double image, PictureBoxSizeMode sizeMode ) : DialogResult

Displays an image on the screen.

Show ( double image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( double image, int imageWidth, int imageHeight ) : DialogResult

Displays an image on the screen.

Show ( double image, int imageWidth, int imageHeight, PictureBoxSizeMode sizeMode ) : DialogResult

Displays an image on the screen.

Show ( double image, int imageWidth, int imageHeight, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( string title, Image image ) : DialogResult

Displays an image on the screen.

Show ( string title, Image image, PictureBoxSizeMode sizeMode ) : DialogResult

Displays an image on the screen.

Show ( string title, Image image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( string title, Image image, PictureBoxSizeMode sizeMode, int width, int height, Color backColor ) : DialogResult

Displays an image on the screen.

Show ( string title, UnmanagedImage image, PictureBoxSizeMode sizeMode ) : DialogResult

Displays an image on the screen.

Show ( string title, UnmanagedImage image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult

Displays an image on the screen.

Show ( string title, UnmanagedImage image, PictureBoxSizeMode sizeMode, int width, int height, Color backColor ) : DialogResult

Displays an image on the screen.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ImageBox ( ) : System.Drawing

Initializes a new instance of the ImageBox class.

OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void

Raises the E:System.Windows.Forms.Control.PreviewKeyDown event.

Private Methods

Method Description
ImageBox_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void
centeredToolStripMenuItem_SelectedIndexChanged ( object sender, EventArgs e ) : void
saveFileDialog1_FileOk ( object sender, System e ) : void
zoomToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

ImageBox() protected method

Initializes a new instance of the ImageBox class.
protected ImageBox ( ) : System.Drawing
return System.Drawing

OnPreviewKeyDown() protected method

Raises the E:System.Windows.Forms.Control.PreviewKeyDown event.
protected OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void
e System.Windows.Forms.PreviewKeyDownEventArgs
return void

Show() public static method

Displays an image on the screen.
public static Show ( Image image ) : DialogResult
image System.Drawing.Image The image to show.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( Image image, PictureBoxSizeMode sizeMode ) : DialogResult
image System.Drawing.Image The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( Image image, PictureBoxSizeMode sizeMode, Color backColor ) : DialogResult
image System.Drawing.Image The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
backColor Color The background color to use in the window. /// Default is .
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( Image image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult
image System.Drawing.Image The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( Image image, int width, int height ) : DialogResult
image System.Drawing.Image The image to show.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( String title, double image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult
title String The text to display in the title bar of the image box.
image double The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( UnmanagedImage image ) : DialogResult
image Accord.Imaging.UnmanagedImage The image to show.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( UnmanagedImage image, PictureBoxSizeMode sizeMode ) : DialogResult
image Accord.Imaging.UnmanagedImage The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( double image ) : DialogResult
image double The image to show.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( double image, PictureBoxSizeMode sizeMode ) : DialogResult
image double The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( double image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult
image double The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( double image, int imageWidth, int imageHeight ) : DialogResult
image double The image to show.
imageWidth int The width of the image.
imageHeight int The height of the image.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( double image, int imageWidth, int imageHeight, PictureBoxSizeMode sizeMode ) : DialogResult
image double The image to show.
imageWidth int The width of the image.
imageHeight int The height of the image.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( double image, int imageWidth, int imageHeight, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult
image double The image to show.
imageWidth int The width of the image.
imageHeight int The height of the image.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, Image image ) : DialogResult
title string The text to display in the title bar of the image box.
image System.Drawing.Image The image to show.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, Image image, PictureBoxSizeMode sizeMode ) : DialogResult
title string The text to display in the title bar of the image box.
image System.Drawing.Image The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, Image image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult
title string The text to display in the title bar of the image box.
image System.Drawing.Image The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, Image image, PictureBoxSizeMode sizeMode, int width, int height, Color backColor ) : DialogResult
title string The text to display in the title bar of the image box.
image System.Drawing.Image The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
backColor Color The background color to use in the window. /// Default is .
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, UnmanagedImage image, PictureBoxSizeMode sizeMode ) : DialogResult
title string The text to display in the title bar of the image box.
image Accord.Imaging.UnmanagedImage The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, UnmanagedImage image, PictureBoxSizeMode sizeMode, int width, int height ) : DialogResult
title string The text to display in the title bar of the image box.
image Accord.Imaging.UnmanagedImage The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
return DialogResult

Show() public static method

Displays an image on the screen.
public static Show ( string title, UnmanagedImage image, PictureBoxSizeMode sizeMode, int width, int height, Color backColor ) : DialogResult
title string The text to display in the title bar of the image box.
image Accord.Imaging.UnmanagedImage The image to show.
sizeMode PictureBoxSizeMode How to display the image inside the image box.
width int The width of the image box.
height int The height of the image box.
backColor Color The background color to use in the window. /// Default is .
return DialogResult