I am trying to dynamically create a Bitmap Image using byte array using following code
Bitmap GetImage() { IntPtr ip = Marshal.AllocCoTaskMem(imagesize);
If you know the dimensions in advance, why not creating the bitmap and use the Bitmap.LockBits method to get the input buffer address?