标签:blog i+1 size height width val col cpp data
void CreateBGRByOneClr(COLORREF clr,int width,int height,BYTE **data,int *size) { *size = width*height*3; *data = (BYTE*)malloc(*size); for (int i=0;i<*size;i+=3) { (*data)[i] = GetBValue(clr); (*data)[i+1] = GetGValue(clr); (*data)[i+2] = GetRValue(clr); } }
标签:blog i+1 size height width val col cpp data
原文地址:http://www.cnblogs.com/hatsusakana/p/7799666.html