public void GetPixelAsImage() { Color pixel = WindowsDisplay.GetPixel(0, 0); Assert.IsNotNull(pixel); pixel = WindowsDisplay.GetPixel(new Point(0, 0)); Assert.IsNotNull(pixel); }
public void FindPixelPosition() { IVideoDisplay videoDisplay = new WindowsDisplay(); ICursor cursor = new WindowsCursor(); IColourPicker colorPicker = new ColourPicker(); Color colourAtCursor = colorPicker.GetFromDisplayPosition(videoDisplay, cursor.GetPosition()); var point = PixelFinder.FindPixelPosition(videoDisplay, colourAtCursor); Assert.IsNotNull(point, "Could not find the pixel you were hovering over on the screen."); }
public void GetPortionAsImage() { Bitmap portion = WindowsDisplay.GetPortionAsImage(0, 0, 200, 200); AssertIsPortion(portion); portion = WindowsDisplay.GetPortionAsImage(0, 0, new Size(200, 200)); AssertIsPortion(portion); portion = WindowsDisplay.GetPortionAsImage(new Point(0, 0), 200, 200); AssertIsPortion(portion); portion = WindowsDisplay.GetPortionAsImage(new Point(0, 0), new Size(200, 200)); AssertIsPortion(portion); }
internal static void LoadMainWindowStyleInState(EditorFullscreenState.WindowFullscreenState fullscreenState, bool makeResizable) { WindowsDisplay.LoadMainWindowStyleInState(fullscreenState, makeResizable); }
internal static void SaveMainWindowStyleInState(EditorFullscreenState.WindowFullscreenState fullscreenState) { WindowsDisplay.SaveMainWindowStyleInState(fullscreenState); }
public void GetAsImage() { Bitmap screenshot = WindowsDisplay.GetAsImage(); AssertIsScreenshot(screenshot); }
/// Makes a window with the specified title fullscreen on a system display. public static void MakeWindowCoverTaskBar(string windowClass, string windowTitle, SystemDisplay display) { WindowsDisplay.MakeWindowCoverTaskBar(windowClass, windowTitle, display); }
/// Makes an editor window fullscreen on a system display. public static void MakeWindowCoverTaskBar(EditorWindow editorWindow, SystemDisplay display) { WindowsDisplay.MakeWindowCoverTaskBar(editorWindow, display); }
public static bool WindowIsFullscreenOnDisplay(EditorWindow editorWindow, string windowTitle, SystemDisplay display) { return(WindowsDisplay.WindowIsFullscreenOnDisplay(editorWindow, windowTitle, display)); }