Processing a bitmap - newbie

  • Thread starter Thread starter Iwanow
  • Start date Start date
I

Iwanow

Hello!

I want to load a bitmap from a file, modify some of its pixels (i.e.
change RGB values), and display it on a form. It seems to be a quite
simple task, but I still get compilation errors. Could you please
provide me with a sample piece of code showing how to load such a
bitmap, how to modify its pixels, and how to display it on a form?

If it matters, I use C++ from VS 2005. Thank you in advance for your
help.
 
Iwanow said:
I want to load a bitmap from a file, modify some of its pixels (i.e.
change RGB values), and display it on a form. It seems to be a quite
simple task, but I still get compilation errors. Could you please
provide me with a sample piece of code showing how to load such a
bitmap, how to modify its pixels, and how to display it on a form?

If it matters, I use C++ from VS 2005. Thank you in advance for your
help.

I'm assuming that since you are using C++ that you are looking for a native
code sample. If that's the case then this article will give you a good
overview on the bitmaps and stuff:

http://support.microsoft.com/kb/q97193/

If you have detailed, specific questions about the sample you should
probably post again in the graphics group:

microsoft.public.win32.programmer.gdi

If I misunderstood and you are looking for a .Net solution then just say so
and someone (not me <g>) will likely give you a tip.

Regards,
Will
 
Back
Top