Created
July 26, 2012 08:34
-
-
Save Stasonix/3181002 to your computer and use it in GitHub Desktop.
Test IMG project (SO) form1.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace testimg | |
{ | |
public partial class Form1 : Form | |
{ | |
Bitmap myImage; | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void timer1_Tick(object sender, EventArgs e) | |
{ | |
myImage = doimg.picture(); | |
Invalidate(); | |
} | |
private void Form1_Load(object sender, EventArgs e) | |
{ | |
timer1.Enabled = true; | |
} | |
private void Form1_Paint_1(object sender, PaintEventArgs e) | |
{ | |
if (myImage != null) | |
e.Graphics.DrawImage(myImage, 0, 0); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment