"Patrick" <th**********@spamgourmet.com> wrote in message
news:ck**********@home.itg.ti.com...
Hi
I have an integer vector std::vector filled with data of an image.
How can I show it on the screen.I know the size of the picture. I'm using
VC++ 6. Thanks in advance.
CU
Patrick
Assuming your vector is call vec and is a one dimensional vector, then
&vec[0] will give you a pointer to the start of the image.
vec.size()*sizeof<T> will give you the size of the image (where T is the
type of your vector elements). Now, assuming your vector is formatted
correctly, you can just pass these values to whatever Windows API calls are
used to display a bitmap.
If you meant to ask how to display a bitmap in Windows then the correct
place for that would be news:comp.os.ms-windows.programmer.win32
john