Changing colours of a bitmap

davidrobin

Active member
Joined
Jun 24, 2003
Messages
41
I have an application that loads a bitmap in to a picturebox.
I want to change the colour of the bitmap so it is only using about 20 colours that I choose.

I have searched the forum but cannot find specific answers to this question.

My thought is looping through each pixel and comparing the colour of each pixel to a list of colours and finding the closest match. There must be a better way than this to do it.

Can you help
I am using VB.NET
 
Back
Top