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!

Editing a picture file in code

Status
Not open for further replies.

BPMan

Programmer
Jun 25, 2002
163
0
0
US
i want to edit a picture file with a program. For example i want to go through each pixel and check its RGB values and do something like

if(pixel[123][100].Red == 5)
pixel[123][100].Red = 27

is this possible or is there an easier way to do this.
Thanks
 
Before you ask a question like that, you need to thoroughly read and understand the specification for the image format you have to decipher (wotsit.org has some decent specs on many file formats, by the way).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top