The sample code can be referred to as follows.
Int imageSize = (int)(m_drawframe.uiImgSize + m_drawframe.usHeader);
Byte [ ] image = new byte[imageSize];
Marshal.Copy (m_drawframe.pBuffer, image, 0, imageSize);
The sample code can be referred to as follows.
Int imageSize = (int)(m_drawframe.uiImgSize + m_drawframe.usHeader);
Byte [ ] image = new byte[imageSize];
Marshal.Copy (m_drawframe.pBuffer, image, 0, imageSize);