public IImageProvider GetImageProvider(bool IncludeCursor, out Func <Point, Point> Transform) { var region = _platformServices.DesktopRectangle; Transform = P => new Point(P.X - region.X, P.Y - region.Y); return(_platformServices.GetRegionProvider(region, IncludeCursor)); }
public IImageProvider GetImageProvider(bool IncludeCursor, out Func <Point, Point> Transform) { Transform = P => { var region = _selector.SelectedRegion.Location; return(new Point(P.X - region.X, P.Y - region.Y)); }; return(_platformServices.GetRegionProvider(_selector.SelectedRegion, IncludeCursor, () => _selector.SelectedRegion.Location)); }
public AroundMouseImageProvider(int Width, int Height, int Margin, IPlatformServices PlatformServices, bool IncludeCursor) { _platformServices = PlatformServices; _margin = Margin; this.Width = Width; this.Height = Height; _regionAroundMouse = new Rectangle(0, 0, Width, Height); PointTransform = P => new Point(P.X - _regionAroundMouse.X, P.Y - _regionAroundMouse.Y); _regionProvider = PlatformServices.GetRegionProvider(_regionAroundMouse, IncludeCursor, () => _regionAroundMouse.Location); }
public IImageProvider GetImageProvider(bool IncludeCursor) { return(_platformServices.GetRegionProvider(Screen.Rectangle, IncludeCursor)); }
public IImageProvider GetImageProvider(bool IncludeCursor) { return(_platformServices.GetRegionProvider(_selector.SelectedRegion, IncludeCursor, () => _selector.SelectedRegion.Location)); }
public IImageProvider GetImageProvider(bool IncludeCursor) { var region = _platformServices.DesktopRectangle; return(_platformServices.GetRegionProvider(region, IncludeCursor)); }
public IImageProvider GetImageProvider(bool IncludeCursor, out Func <Point, Point> Transform) { Transform = P => new Point(P.X - Screen.Rectangle.X, P.Y - Screen.Rectangle.Y); return(_platformServices.GetRegionProvider(Screen.Rectangle, IncludeCursor)); }