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

Changing Tbitmap pixel colours

Status
Not open for further replies.

LEICJDN1

Technical User
Nov 27, 2002
201
GB
Hi,

More help requested!

I need to 'clean up' an image. It is essentially a load of 'black' lines overlayed on a fine 'red' grid.

I say 'black' and 'red' as of course each line has shades of grey as the black and the 'red' is a variety of shades.

What I need to do is remove the grid as it is not needed, leaving only the lines, and then I would like to set each line pixel to black i.e. 0,0,0 rather than the original varying shades.

I guess I could scan each line and manually set each pixel to either black or white depending on the original value but can the same effect be achieved quicker and easier by forcing a pallette change? If so, how do I go about that. There is more than one image on screen at any one time, with only one needing processing, so I would need to change the pallette of that image only.

Thanks in advance for any suggestions / advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top