C# Класс PixelShare.Core.SnapperWindow

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

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

Метод Описание
OnCloseRequested ( ) : bool

This is our opportunity to shut things down cleanly as the window has been requested to close. We shut down the thread that's taking the snapshots, and wait 100 milliseconds before returning 'true' which indicates that we are ok with the shutdown continuing.

OnKeyUp ( KeyboardActivityArgs ke ) : IntPtr
OnMaximized ( int width, int height ) : void
OnMinimized ( ) : void
OnResizedTo ( int width, int height ) : void

After resizing has occured, this method is called. At this point, you know the new width and height of the client area. We set the field 'fNeedsResize' to true so that the next time the snapper thread asks to take a snapshot, the PixelBuffer object will be resized. the newWidth, and newHeight capture the new sizes. This could be eliminated as the CaptureClientArea could simply take the current ClientRectangle size at the time of the call.

SnapperWindow ( ) : System
SnapperWindow ( int x, int y, int width, int height ) : System

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

Метод Описание
RunSnaps ( ) : void

This thread routine takes snapshots of the screen periodically. The frame rate is governed by the FrameRate property of the window. The frame rate is governed by taking time stamps after each frame is captured and sent to the network. If there is more than 10 ms before the next frame is to be captured, the thread will sleep for that amount of time before performing the next capture.

SendSnapshot ( ) : void
SnapClientArea ( ) : void

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

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

This is our opportunity to shut things down cleanly as the window has been requested to close. We shut down the thread that's taking the snapshots, and wait 100 milliseconds before returning 'true' which indicates that we are ok with the shutdown continuing.
public OnCloseRequested ( ) : bool
Результат bool

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

public OnKeyUp ( KeyboardActivityArgs ke ) : IntPtr
ke NewTOAPIA.UI.KeyboardActivityArgs
Результат System.IntPtr

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

public OnMaximized ( int width, int height ) : void
width int
height int
Результат void

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

public OnMinimized ( ) : void
Результат void

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

After resizing has occured, this method is called. At this point, you know the new width and height of the client area. We set the field 'fNeedsResize' to true so that the next time the snapper thread asks to take a snapshot, the PixelBuffer object will be resized. the newWidth, and newHeight capture the new sizes. This could be eliminated as the CaptureClientArea could simply take the current ClientRectangle size at the time of the call.
public OnResizedTo ( int width, int height ) : void
width int
height int
Результат void

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

public SnapperWindow ( ) : System
Результат System

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

public SnapperWindow ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
Результат System