public void GetDirtyPixel(out int x, out int y) { int value = swapChain.Read(); ResolvePixelPositionIndex(value, out x, out y); }