Show ImageDisplayForm.cs syntax highlighted
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Whiteboard.Sendbox
{
/// <summary>
/// Summary description for ImageDisplayForm.
/// </summary>
public class ImageDisplayForm : System.Windows.Forms.Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
private Bitmap bitmapImage = null;
public ImageDisplayForm(Bitmap bitmapImage)
{
this.bitmapImage = bitmapImage;
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ImageDisplayForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 273);
this.Name = "ImageDisplayForm";
this.Text = "ImageDisplayForm";
}
#endregion
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
this.Height = bitmapImage.Height;
this.Width = bitmapImage.Width;
PointF topLeft = new PointF(0.0f, 0.0f);
PointF topRight = new PointF(0.0f, (float)bitmapImage.Width);
PointF buttomRight = new PointF((float)bitmapImage.Height, (float)bitmapImage.Width);
PointF buttomLeft = new PointF(0.0f, (float)bitmapImage.Width);
e.Graphics.DrawImage(bitmapImage, 0, 0, bitmapImage.Width, bitmapImage.Height );
}
}
}
See more files for this project here
The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.
Project homepage:
http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other
ImageDisplayForm.cs
ImageDisplayForm.resx