namespace Prism.Glass.UnitTests { public static class PixelText { public static string At(byte[] pixels, int width, int column, int row) { int offset = (row * width + column) * Rgba.BytesPerPixel; Color color = Color.FromArgb(pixels[offset + 3], pixels[offset], pixels[offset + 1], pixels[offset + 2]); return HexColor.Format(color, includeAlpha: true); } } }