After establishing 4 channels arrays like this,

Code:
std::vector<std::vector<double>> rchannel;
std::vector<std::vector<double>> gchannel;
std::vector<std::vector<double>> bchannel;
std::vector<std::vector<double>> achannel;
where the size of the vectors is the dimension of the bitmap
I want to generate bitmap where the left corner starts with the value 1, this value is spread across 4 channels,
How can I achieve this?
Code:
DWORD val=1;
for (int i=0; i<height; i++)
{
    std::vector<double> _rchannel;
    std::vector<double> _gchannel;
    std::vector<double> _bchannel;
    std::vector<double> _achannel;
    for(int j=0; j < width; j++)
    { 
          _rchannel.push_back();
          ...
         val++; 
    }
}
Thanks
Jack