LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get image data in vc++

hi  all,
 
i'd like to use vc++ to process image data (read/modify pixel values, display the image, etc.) through imaq library.
sample code:

// get the frame

imgGrab (Sid, &ImaqBuffer, TRUE);

// display it using imgPlot

imgPlot ((GUIHNDL)ImaqSmplHwnd, ImaqBuffer, 0, 0, AcqWinWidth, AcqWinHeight,

CanvasLeft, CanvasTop, plotFlag);

imaqBuffer ist the buffer for storing image data, which was declared as follows:

static

 char *ImaqBuffer=NULL; // acquisiton buffer

How can i get the image data from "ImaqBuffer"? (how to get the buffer size?)

thx a lot!

scott

0 Kudos
Message 1 of 2
(2,147 Views)

Hi Scott, wit installing NI-IMAQ you will get examples.  You can find them in C:\Programme\National Instruments\NI-IMAQ\Sample\MSVC\Grab I think they will answer your question.

Thanks, Rebecca

NI, Germany Applications Engineer

Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,134 Views)