Cypress does not provide a ready application that uses the Direct Show APIs to display image on the UI.
The below code snippet can be used to convert raw data into bitmap format that can be displayed on a Picture Box in Windows Forms Applications.
Bitmap bitmap = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format8bppIndexed);
BitmapData bitmapData = bitmap.LockBits(new Rectangle(0, 0, width, height), ImageLockMode.WriteOnly, bitmap.PixelFormat);
Marshal.Copy(read_data, 0, bitmapData.Scan0, read_data.Length);
pictureBox1.Image = bitmap;
thanks for giving reply about Direct X, Direct show , and can you just tell some what clearly about bitmap generation which you sent above ,for that how we have to give input directly from buffer without writing it int file .
Geetanjali T D
Yes, the buffer that is used to read data from the FX2LP is passed as an input to this function block. I have named it as 'read_data'.