ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imgPlotDC function

Has anyone used the imgPlotDC() function to plot a captured bitmap onto a
memory DC? When I use that function to plot to a window DC it works just
fine, but when I try to use a memory DC instead nothing happens. The
function returns success, but no bitmap is plotted.

What I am trying to do is to plot the bitmap onto a memory DC and then
display it as either grayscale or false color by changing the memory DC's
palette.

Also what is the layout of the pixel bits in a captured bitmap? Is it the
same as a Windows bitmap, or some different format?

If anyone has the answers to these questions, please post or send me an
email.

Richard
0 Kudos
Message 1 of 2
(3,901 Views)
I have used this routine. You have to call BitBlt() after imgPlotDC().
I attach code samples.

The captured data passed to imgPlotDC() is just an array of unsigned char and not a Windows bitmap.
0 Kudos
Message 2 of 2
(3,901 Views)