If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

raw display

Used some online code example to put a little project to display raw image. The display does not seem to work.
For some purposes, I like this to work with a dialog based MFC project.XDVView is derived from CScrollView.
see OnInitDialog() and OnDraw(CDC* pDC).8bit 768x756

Re: raw display

Got a dialog based MFC that is 100% done. Would be nicer to draw a few raw images continuously using a pop up dialog. Worked with SDI long time ago and do not see major point to port everything to SDI. This is not a major show just a few continuous captures and displays. image is 8bit grayscale. There are many similar reasons in the forum.

Re: raw display

since i use SetDIBitsToDevice(dc->GetSafeHdc(),.. , then I do not need to call the ReleaseDC, right?. If the buffer passed to the SetDIBitsToDevice is refreshed, I have to call the Invalidate to (refresh the) display the current data in the buffer, right?. I wrote a bit of code to test this. I like to read some inputs as well.