How do you set pixels to be transparent in a .GIF or .PNG file in Visual Studio 2008's drawing editor?

franji1 picture franji1 · May 23, 2012 · Viewed 23.5k times · Source

My graphic artist gave me a .PNG file, then the same file as a .GIF. When I save it, the transparent background pixels actually get set to white pixels. At one time I thought VS could do transparent colors with this little pink/salmon retro-tv looking icon in the color palette, but it's not showing up any more.

Anybody have any ideas?

Answer

Michael Cowley picture Michael Cowley · Dec 10, 2014

Open the file gif/png with the Visual Studio Editor

In the properties window select a format that supports the alpha channel i.e. 32bpp BGRA

Using the eraser tool now will set those pixels to transparent.