LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqImageToArray

I am trying to convert an image to an array and display it on a canvas.  temp is my image it is being displayed in a window.  I would like to display it in a canvas for my application.  Here is my code:
 
static Int8* snap;
 
 
snap=imaqImageToArray(temp,IMAQ_NO_RECT,NULL,NULL);  
 
 imgPlot ((GUIHNDL)CVIWndHndl,snap, 0, 0, AcqWinWidth,
       AcqWinHeight, CanvasLeft, CanvasTop, PlotFlag);
 
I tried changing the null to different R+C values and it still doesn't work.
 
 
0 Kudos
Message 1 of 2
(3,030 Views)

I finally got it working.

 

Thanks!

0 Kudos
Message 2 of 2
(3,026 Views)