public unsafe ColorEx GetPixel(int x, int y) { float r, g, b, a; fixed(byte *bytebuf = pixelData) { PixelUtil.UnpackColor(out r, out g, out b, out a, format, bytebuf + ComputeOffset(x, y)); } return(new ColorEx(a, r, g, b)); }