C# Класс AdvancedLauncher.Tools.Interop.RedirectedWindow

Наследование: WindowBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateBitmap ( int width, int height ) : void
DestroyBitmap ( ) : void

Описание методов

AlignClientAndScreen() публичный Метод

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
Результат void

SetClientAreaSize() публичный Метод

Sizes the window such that the client area has the specified size.
public SetClientAreaSize ( int width, int height ) : bool
width int
height int
Результат bool

UpdateRedirectedBitmap() публичный Метод

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
Результат System.Windows.Media.Imaging.BitmapSource