如果我在C#中有这段代码:
int index = 10;
float value = 20;
float* pixels = getPixelData();
pixels[index+1] = (byte)(value/256);
pixels[index+0] = (byte)(value & 0xFF);
然后,问题是如果我有:
,如何计算'价值'int index = 10;
pixels[index+1] = X;
pixels[index+0] = Y;
float value = ?