我必须将DWORD(unsignedlong)RGBA转换为四个int变量(R、G、B和A)到目前为止,我有将4个整数转换为DWORD的函数:unsignedlongRGBA2DWORD(intiR,intiG,intiB,intiA){return((iA我怎样才能把它转换回来?有点像structRGBA{intR,G,B,A;};RGBADWORD2RGBA(unsignedlongdwColor){staticRGBAtmp;//.......conversionprocessreturntmp;}如有任何帮助,我们将不胜感激!:)谢谢 最佳答案