/// <summary> /// This function gets the color of a single pixel from pixels contained in a string. /// </summary> public Color GetPixelColor(Vector2 coordinate) { string p = pixels; if (Format != ImageFormat.plain) { p = Convert(ImageFormat.plain); } Tuple <int, int, int, int> result = MtaClient.DxGetPixelColor(p, (int)coordinate.X, (int)coordinate.Y); return(new Color((byte)result.Item1, (byte)result.Item2, (byte)result.Item3, (byte)result.Item4)); }