C# 화면 흘러내림(Screen melt)
main():
IntPtr lngDC;
int intX, intY;
IntPtr hdc;
int intWidth, intHeight;
lngDC = clsModule.GetDC(IntPtr.Zero);
hdc = clsModule.CreateCompatibleDC(lngDC);
intWidth = Screen.PrimaryScreen.Bounds.Width;
intHeight = Screen.PrimaryScreen.Bounds.Height;
clsModule.BitBlt(hdc, 0, 0, intWidth, intHeight, lngDC, 0, 0, 13369376);
timer3.Start();
timer3_Tick():
Random random = new Random(); intX = Convert.ToInt32((intWidth - 512) * (random.NextDouble())); intY = Convert.ToInt32((intHeight - 512) * (random.NextDouble())); BitBlt(lngDC, intX, intY + 1, 1024, 1024, lngDC, intX, intY, 13369376);
'소스 관련' 카테고리의 다른 글
| C# 화면 회전(Screen Rotate) (1) | 2013.03.24 |
|---|---|
| C# 크레이지 마우스(crazy mouse) (0) | 2013.03.24 |
| 2013-02-20 C# 마인크래프트 사이트 로그인 (3) | 2013.02.20 |
| 2013-02-20 FTP 파일 업로더 (0) | 2013.02.20 |
| 비주얼 베이직 6.0 멀티파트 관련 클래스 모듈 (0) | 2013.02.14 |