pData
Pointer to a buffer that contains the pixel data to set. This buffer should be able to store
nBytes bytes.