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);