binary data to image VC++
-
Just append each chunk to your array as you receive it and when you have the complete image you display it direct from memory using any one of the image functions in Windows. See http://msdn.microsoft.com/en-us/library/ms534462(v=vs.85).aspx[^] for help on image displaying.
Thanks
-
Just append each chunk to your array as you receive it and when you have the complete image you display it direct from memory using any one of the image functions in Windows. See http://msdn.microsoft.com/en-us/library/ms534462(v=vs.85).aspx[^] for help on image displaying.
Thank you. Its proving difficult as I am not used to working with hardware in C++.
-
Thank you. Its proving difficult as I am not used to working with hardware in C++.
-
Yes the image data is passed from a scanner.. I am consolidating the data received in 4k chunks and displaying the image in a window.
-
Yes the image data is passed from a scanner.. I am consolidating the data received in 4k chunks and displaying the image in a window.
-
Nothing right now. I wanted an overview as to how people would approach the problem.
-
Nothing right now. I wanted an overview as to how people would approach the problem.
-
Approach what problem? It is simply a matter of receiving each chunk of data and appending it to the previous chunk until you have the complete image.
True. But when I posted the question I had no idea about how the image was rendered onto the window.
-
True. But when I posted the question I had no idea about how the image was rendered onto the window.
-
But that has nothing to do with the issue of transferring a file across a network. And in my first reply I gave you a link to an MSDN page which explains how to display images.
That I figured out. You answered my question.