C# Class AdvancedLauncher.Tools.Interop.RedirectedWindow

Inheritance: WindowBase
Datei anzeigen Open project: GoldRenard/DMOAdvancedLauncher Class Usage Examples

Public Methods

Method Description
AlignClientAndScreen ( int xClient, int yClient, int xScreen, int yScreen ) : void

Aligns the RedirectedWindow such that the specified client coordinate is aligned with the specified screen coordinate.

SetClientAreaSize ( int width, int height ) : bool

Sizes the window such that the client area has the specified size.

UpdateRedirectedBitmap ( ) : System.Windows.Media.Imaging.BitmapSource

Returns a bitmap of the contents of the window.

RedirectedWindow maintains a bitmap internally and only allocates a new bitmap if the dimensions of the window have changed. Even if UpdateRedirectedBitmap returns the same bitmap, the contents are guaranteed to have been updated with the current contents of the window.

Private Methods

Method Description
CreateBitmap ( int width, int height ) : void
DestroyBitmap ( ) : void

Method Details

AlignClientAndScreen() public method

Aligns the RedirectedWindow such that the specified client coordinate is aligned with the specified screen coordinate.
public AlignClientAndScreen ( int xClient, int yClient, int xScreen, int yScreen ) : void
xClient int
yClient int
xScreen int
yScreen int
return void

SetClientAreaSize() public method

Sizes the window such that the client area has the specified size.
public SetClientAreaSize ( int width, int height ) : bool
width int
height int
return bool

UpdateRedirectedBitmap() public method

Returns a bitmap of the contents of the window.
RedirectedWindow maintains a bitmap internally and only allocates a new bitmap if the dimensions of the window have changed. Even if UpdateRedirectedBitmap returns the same bitmap, the contents are guaranteed to have been updated with the current contents of the window.
public UpdateRedirectedBitmap ( ) : System.Windows.Media.Imaging.BitmapSource
return System.Windows.Media.Imaging.BitmapSource