Removing pink color in attached gif image

I like to remove (or) make it transparent in the attached gif image via code

1) i need to find out which pixel has the pink color.
2) and make that pixel as transparent or remove that pixel

If anybody has the experience in this area

I attached the gif image. I need to remove or make it transparent of the pink color (which is around the globe)

LVL 23
Kamaraj SubramanianApplication Support AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The following code does what you have asked for the first frame of you image and has instructions on how to repeat it for all the other frames (your gif is animated). However the code will still not do what you expect it to do because the purple/pink around the globe is not the same everywhere.
(If however you have knowledge of which colors are used you can make them all transparent)
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim myBitmap As New Bitmap("C:\download.gif")
        Dim pixelcolor As System.Drawing.Color = myBitmap.GetPixel(1, 1)
        Dim pixelcolor2 As System.Drawing.Color = System.Drawing.Color.FromArgb(248, 25, 251)
        PictureBox1.Image = myBitmap
        'For animated images loop over all frames using 
        'myBitmap.SelectActiveFrame(System.Drawing.Imaging.FrameDimension.Time, FramIndex)
    End Sub

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.