C# Class ScreenShotter.Program

Mostra file Open project: testingbot/Selenium-Screenshots

Public Methods

Method Description
ResizeImage ( Bitmap image, int width, int height ) : Bitmap

Private Methods

Method Description
EnumThreadWindows ( int threadId, EnumThreadProc pfnEnum, IntPtr lParam ) : bool
GetWindowRect ( IntPtr hWnd, System.Windows.Forms.RECT &lpRect ) : bool
GetWindowText ( IntPtr hWnd, System.StringBuilder text, int count ) : int
Main ( string args ) : void
MyEnumThreadWindowsProc ( IntPtr hWnd, IntPtr lParam ) : bool
PrintWindow ( IntPtr hwnd, IntPtr hdcBlt, uint nFlags ) : bool
getWindowHandle ( ) : void
takeShot ( ) : void

Method Details

ResizeImage() public static method

public static ResizeImage ( Bitmap image, int width, int height ) : Bitmap
image Bitmap
width int
height int
return System.Drawing.Bitmap