-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmImage.cs
37 lines (32 loc) · 851 Bytes
/
frmImage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Drawing;
using System.Windows.Forms;
namespace SBuilderXX
{
internal partial class FrmImage
{
public FrmImage()
{
InitializeComponent();
}
private Image img;
private int myWidth;
private int myHeight;
private void FrmImage_Click(object sender, EventArgs e)
{
Dispose();
}
private void FrmImage_Load(object sender, EventArgs e)
{
img = Image.FromFile(moduleMAIN.ImageFileName);
Width = img.Width;
Height = img.Height + 32;
myWidth = img.Width;
myHeight = img.Height;
}
private void FrmImage_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawImage(img, 0, 0, myWidth, myHeight);
}
}
}