LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Show unsigned char array image on Panel Control

Solved!
Go to solution

Hello,
I am using a camera that captures an image and returns an unsigned char array. How can I show that data on a panel control on the UIR? I have attached the code that leads to the capture of the array.

 

 

The array that stores the data is  :

 

unsigned char *pBuffer= (unsigned char *) malloc(lBuffSize) ;

 

How do I show the data in this array as an image?

0 Kudos
Message 1 of 2
(1,260 Views)
Solution
Accepted by cheney_ni_masi

You can try passing your array to SetBitmapData () or SetBitmapDataEx(), but you will need some additional informations from the camera producer to build up the final image. Look into the function help to understand what you are expected to pass to the function.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(1,230 Views)