主题:关于系统函数Rand()和设置象素SetPixel()问题
[em15]对于
coloRREF SetPixel
{
HDC hdc,
int x,
int y,
coLoRREF crCblor
};
对于RGB()函数附值时利用Rand()函数时,为什么要除以255?
{ int Red =rand()%255;
int Green=rand()%255;}
coloRREF SetPixel
{
HDC hdc,
int x,
int y,
coLoRREF crCblor
};
对于RGB()函数附值时利用Rand()函数时,为什么要除以255?
{ int Red =rand()%255;
int Green=rand()%255;}