Transparent Background and Bleeding

Posted on 2011-10-27
Medium Priority
Last Modified: 2013-12-02

I'm hoping someone can help me with a question regarding creating a transparent background or setting the background without bleeding using the Gimp. Below is part of the image I am dealing with.

 corner of bitmap
What I need to do is to make the background (the white area) another colour as I am adding this to a Windows Form application in which I can make that colour transparent e.g. if I made the background RED then I could tell the application to make RED transparent. In doing this I can make non-rectangular windows!

The way I have done this in the Gimp is as follows:

(1) Load the image into Gimp.
(2) Use the magic wand to click the white background. This selects the background around the main image.
(3) I then use Layer->Transparency->Add Alpha Channel.
(4) Edit->Clear.
(5) I then fill the removed background using a particular colour e.g. RED.

This almost works but the problem I have is that when I use the graphic and run the application there is a slight red edging around the image. I can only assume that when I have filled the background with RED then it has somehow merged into the edge of the graphic.

Does anybody have any ideas how I  can avoid this?

Question by:IssacJones
LVL 33

Accepted Solution

Paul Sauvé earned 1000 total points
ID: 37039134
Have you tried different values for the Threshold parameter when using the Fuzzy Select (Magic wand) tool? Here are 2 examples with different values of Thresshold: Value 125 Value 110

Author Closing Comment

ID: 37039549
Many thanks!!!

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the PaperPort 14 Scanner Connection Tool, which Nuance provides at no charge in order to fix scanning problems in Windows 8. Furthermore, users of PaperPort 14 in Windows 7 and Windows 10 have reported that the tool works in t…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
The goal of the tutorial is to teach the user what exposure is and how to use the exposure slider. Analyze the photo that you want to edit, then adjust the exposure slider to your liking.
The goal of the tutorial is to teach the user the full work flow of how to use flash media encoder to stream onto YouTube.
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question