Hello, I have some camera hardware that -- using the provided sample code -- I am able to use their functions to pull raw data out of (it says that it is in RGB24 format) and there is some other code that seems to create a corresponding BITMAPINFOHEADER structure. But I don't know how to turn this into something I can use. To clarify, below is the code.
Structure LUCAM_FRAME_FORMAT Dim xOffset As Integer Dim yOffset As Integer Dim width As Integer Dim height As Integer Dim pixelFormat As Integer Dim subSampleX As Short Dim flagsX As Short Dim subSampleY As Short Dim flagsY As Short End Structure Public FrameFormat As LUCAM_FRAME_FORMATPublic BitmapFrame() As Byte...LucamGetFormat(hCamera, myFrameFormat, FrameRate) ret = LucamConvertFrameToRgb24(hCamera, BitmapFrame, MyFrame, FrameFormat.width, FrameFormat.height, FrameFormat.pixelFormat, Conversion)
and then it does some other things with this data (feeds it into its own functions) that are not useful to me. what I need to do is stop it here, and turn the data into my own .NET System.Drawing.Bitmap object so that I can do whatever I want with it.
But so far I have not been able to string together the code to convert the raw byte array, that apparently matches up with this BITMAPINFOHEADER, into my own .NET bitmap. Does anyone have any suggestions?
That gave me enough ammunition to post a question back to the vendor, thanks.