C# 클래스 Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailScreenCapture

Helper class to capture a control or window as System.Drawing.Bitmap
파일 보기 프로젝트 열기: dlech/SshAgentLib 1 사용 예제들

공개 메소드들

메소드 설명
GrabWindowBitmap ( IntPtr windowHandle, System bitmapSize ) : Bitmap

Captures a screenshot of the specified window at the specified bitmap size. NOTE: This method will not accurately capture controls that are hidden or obstructed (partially or completely) by another control (e.g. hidden tabs, or MDI child windows that are obstructed by other child windows/forms).

비공개 메소드들

메소드 설명
ResizeImageWithAspect ( IntPtr originalHBitmap, int newWidth, int maxHeight, bool resizeIfWider ) : Bitmap

/// Grabs a snapshot of a WPF UIElement and returns the image as Bitmap. ///

Resizes the given bitmap while maintaining the aspect ratio.

메소드 상세

GrabWindowBitmap() 공개 정적인 메소드

Captures a screenshot of the specified window at the specified bitmap size. NOTE: This method will not accurately capture controls that are hidden or obstructed (partially or completely) by another control (e.g. hidden tabs, or MDI child windows that are obstructed by other child windows/forms).
public static GrabWindowBitmap ( IntPtr windowHandle, System bitmapSize ) : Bitmap
windowHandle System.IntPtr The window handle.
bitmapSize System The requested bitmap size.
리턴 System.Drawing.Bitmap