Greetings

I have a 256x256 array containing RGB values.Each value represents one out of 256 possible shades of gray.
The problem is that i don't know how to use this array to create a DIB.
I read about CreateDIBSection() function in help but being a newbie I cannot understand how to use it.

Could anyone help me?

Thanks in advance

George