Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bitmaps in raw arrays

Status
Not open for further replies.

kartheterrible

Programmer
Mar 6, 2007
2
0
0
US
I'm using ffmpeg to stream video. I finally have a raw data array with the pixel info in it (RGB32). I'd like to be able to render this in a windows app using BitBlt or similar.

The problem is however, I don't know how to associate a DC with my raw memory array? Any suggestions on how to go about this?

Thanks
K
 
Create a BITMAP object out from your pixel data, associate it with the DeviceContext and BitBlt it into your destination DC.

------------------
When you do it, do it right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top