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.