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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alternatives to SetPixel()

Status
Not open for further replies.

peterworth

Programmer
Aug 18, 2004
80
GB
i want to create an array of rgb values and then draw them with a CDC. i assume the best way to do this is with BitBlt, but this requires a CDC to copy from in the first place. how do i create a CDC with the values in my (2D) array?
 
I believe you could create a bitmap from your raw data and simply select it with a DC, but I've never done that myself.
 
why do you need an alternative for SetPixel?
i think setpixel will do the job...
 
>I believe you could create a bitmap from your raw data and simply select it with a DC, but I've never done that myself.

yeah thats it, thanks.

>why do you need an alternative for SetPixel?
i think setpixel will do the job...

because its very very slow (1024 x 800 = a lot of function calls)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top