View an image with API32
From: Joan (xatruch_at_gmail.com)
Date: 11/30/04
- Next message: Jonathan Turkanis: "Re: Which is the best way for holding flags?"
- Previous message: Jonathan Turkanis: "Re: Which is the best way for holding flags?"
- Next in thread: Victor Bazarov: "Re: View an image with API32"
- Reply: Victor Bazarov: "Re: View an image with API32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Nov 2004 18:44:53 -0800
Hi!
Im working with C++ & win API32.
My Problem:
I have in a matrix of unsigned chars the colours (in RGB format) of
an image. The dimensions of the image are 720 x 576 (cols x rows). So
the size of the matrix is 720*576*3 bytes (unsigned chars).
My pogram has to show that image in the Main Window. But I don't
know how show i efficiently. By now, I have one SetPixel(...) function
for every pixel :D so it is not "immediately" and you can see how the
image "grows up" :( How can I show the total image with one function
call? BitBlt() is the solution? Using BitBlt() I dont know what is
"handle to source DC" in front of my data image matrix.
Thanks a lot! ;)
- Next message: Jonathan Turkanis: "Re: Which is the best way for holding flags?"
- Previous message: Jonathan Turkanis: "Re: Which is the best way for holding flags?"
- Next in thread: Victor Bazarov: "Re: View an image with API32"
- Reply: Victor Bazarov: "Re: View an image with API32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]