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

Changing BMP Pixel Value

Status
Not open for further replies.

mbro

Programmer
Nov 12, 2004
25
0
0
US
Hi,

I'd like to write a program to read a BMP and change all of the colours that are almost black to be black R:0 G:1 B:0 to R:0 G:0 B:0.

I have a binary method for reading in and checking pixel values but no of no way of reading the image in and writing it.

Would someone be able to help me? Possibly with code as well?

Thanks,
Mike
 
Ypu might want to look at my code in thread222-950076, which illustrates a technique that doesn't require you to examine the pixels yourself and works at around about blitting speeds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top