for one. Note that even for something as simple as a bmp you have to do a lot of file decoding before you can get one pixel information; you have to take into account the color depth of the bitmap, whether it's palletized, x/y extents, etc, etc. You may be able to locate code that will do it; I've always just "grown my own".
Right after posting this I realized I could do what you suggested apatterno, but the question is, how can I set the color of a pixel? I can use CDC::SetPixel to set it on the DC, but that won't change it on the bitmap itself, will it? It seems like Microsoft would/should have made something like this fairly easy.
Oops...cello1000 is a friend of mine and I posted this at his house under his name...but I'm the one who made this topic. Anyway, is there a way to get a DC's image as a bitmap?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.