| 268 | } |
| 269 | |
| 270 | gfx::Color SystemWin::getColorFromScreen(const gfx::Point& screenPosition) const |
| 271 | { |
| 272 | HDC dc = GetDC(nullptr); |
| 273 | COLORREF c = GetPixel(dc, screenPosition.x, screenPosition.y); |
| 274 | ReleaseDC(nullptr, dc); |
| 275 | return gfx::rgba(GetRValue(c), GetGValue(c), GetBValue(c)); |
| 276 | } |
| 277 | |
| 278 | ScreenRef SystemWin::primaryScreen() |
| 279 | { |