I don't know how to get a pixel data buffer.

In C# environment, how can i get the reference or pointer of pixel data buffer in bitmap? To use a function glDrawPixels, i need a pointer of IntPtr representing a start address of pixel data buffer in bitmap as fifth argument of the function.

You’re probably best asking this question in a C# forum.