¡@

Home 

c# Programming Glossary: hdcsrc

Saving a screenshot of a window using C#, WPF, and DWM

http://stackoverflow.com/questions/1858122/saving-a-screenshot-of-a-window-using-c-wpf-and-dwm

public static Image CaptureWindow IntPtr handle IntPtr hdcSrc User32.GetWindowDC handle RECT windowRect new RECT User32.GetWindowRect.. windowRect.top IntPtr hdcDest Gdi32.CreateCompatibleDC hdcSrc IntPtr hBitmap Gdi32.CreateCompatibleBitmap hdcSrc width height.. hdcSrc IntPtr hBitmap Gdi32.CreateCompatibleBitmap hdcSrc width height IntPtr hOld Gdi32.SelectObject hdcDest hBitmap..

WebBrowser.DrawToBitmap() or other methods?

http://stackoverflow.com/questions/2434156/webbrowser-drawtobitmap-or-other-methods

public static Image CaptureWindow IntPtr handle IntPtr hdcSrc User32.GetWindowDC handle RECT windowRect new RECT User32.GetWindowRect.. windowRect.top IntPtr hdcDest Gdi32.CreateCompatibleDC hdcSrc IntPtr hBitmap Gdi32.CreateCompatibleBitmap hdcSrc width height.. hdcSrc IntPtr hBitmap Gdi32.CreateCompatibleBitmap hdcSrc width height IntPtr hOld Gdi32.SelectObject hdcDest hBitmap..

How to take a screenshot of a Full Size window in C#

http://stackoverflow.com/questions/4176340/how-to-take-a-screenshot-of-a-full-size-window-in-c-sharp

IntPtr handle get te hDC of the target window IntPtr hdcSrc User32.GetWindowDC handle get the size User32.RECT windowRect.. we can copy to IntPtr hdcDest GDI32.CreateCompatibleDC hdcSrc create a bitmap we can copy it to using GetDeviceCaps to get.. width height IntPtr hBitmap GDI32.CreateCompatibleBitmap hdcSrc width height select the bitmap object IntPtr hOld GDI32.SelectObject..

convert windows form to pdf file

http://stackoverflow.com/questions/4813341/convert-windows-form-to-pdf-file

int nHeight height of destination rectangle IntPtr hdcSrc handle to source DC int nXSrc x coordinate of source upper left..