How can I create transparent images in MS Paint?

70

4

I want to know how to draw transparent images in Microsoft Paint for Windows 7.

I searched on Google but couldn't find anything for Microsoft Paint in Windows 7.

E.g. I want to draw a star for my application. But I want that when I display it on black background then there should be no rectangular image with a white background and a star on it. It must be a proper star.

Naveen

Posted 2012-11-02T15:17:15.930

Reputation: 811

Answers

47

Try Paint.NET for size. I tried GimpShop before, but did not like it. Paint.NET is to MS Paint what Notepad++ is to Notepad :)

To change an image to have a transparent background:

  1. Install Paint.NET
  2. Download AlphaMask plugin
  3. Extract AlphaMask.dll to \Paint.NET\Effects (note you will likely need to unblock the file)
  4. Open Paint.NET
  5. Open your file
  6. Copy the content you want to make have a transparent background (ctrl+a, ctrl+c to select all and copy)
  7. Effects Menu > Alpha Mask...
  8. check Invert Mask, check Mix Alpha, leave checked Paste from Clipboard
  9. Click OK
  10. File Menu > Save as, save as type PNG (*.png)
  11. Defaults are fine, OK one last time

source

Dialecticus

Posted 2012-11-02T15:17:15.930

Reputation: 609

2This should be useful – xameeramir – 2016-05-20T14:01:14.417

@student yes, in simple cases magic wand can be used, but if you have for instance image with shades of black and white and want to replace white component with transparent, so that it becomes just black with variable transparency, then magic wand cannot help you. – Dialecticus – 2016-05-20T14:32:23.233

1just for clarity to the asker here, GIMP and GimpShop are two different things – None – 2012-11-02T15:39:56.773

13

Rather than deal with Paint, you should try GIMP.

http://www.gimp.org

It allows you to set any color you want to transparent so you can just fill the background of the image with some radical green or pink or something that doesnt show up anywhere in your star and then set that color to transparent.

Since youre dealing with image manipulation for applications I would also recommend it because it just generally has more functions and better support than Paint, and its free.

This documentation shows you the menu, and what you'll want to do is click 'color to alpha' where you can enter the color code (get it with the eyedrop tool) that you want to send to alpha (transparent)

http://docs.gimp.org/en/gimp-layer-transparency-menu.html

Josh Bibb

Posted 2012-11-02T15:17:15.930

Reputation: 239

If the OP is a noob... gimp is wildly more powerful but also considerably different to use than MS paint. – whitey04 – 2015-05-19T00:01:08.623

1:Since i want simple images for my applications and also i am not familiar with gimp ,i want it to do with ms paint as it will be simpler.

Method to do the same in ms paint will be appreciated. – None – 2012-11-02T15:25:54.163

4

According to microsoft's support forum, Paint in windows 7 does not support transparency. They actually recommend themselves using a 3rd party software, and of those, I'm sure you'll find that gimp is not very difficult to use, and has a great userbase which = great support. http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/paint-transparency-feature/e2829d3c-bea5-4984-9e01-07f2a46549a6

– None – 2012-11-02T15:31:58.573

7

This is what I do when I want to set the background colour of a picture to be transparent:

  1. Open Ms.Word and paste the picture
  2. Format / Color / Set Transparent Colour and select the background colour
  3. Right click on the image and pick "Save as Picture" and save as PNG

gordon613

Posted 2012-11-02T15:17:15.930

Reputation: 293

For my "quick and dirty" use case, this did the trick! – KeithL – 2016-08-23T18:24:55.177

5Needs more explanation. If you right-click the picture and select "Format Picture", there is no "Color" - there is "Fill", "Line Color", and "Picture" that have anything to do with color. None of these has the option to "Set Transparent Color". I actually found the "Set Transparent Color" under the Picture Tools ribbon menu > Format > Recolor, and it's at the bottom of the menu -- Word 2007. Didn't have the ability to save it off, though. Also tried it in Word 2010, and that's where you could do "Save as Picture", but after I imported it into where I needed it, it didn't have the transparency. – vapcguy – 2016-11-14T23:17:53.527

1@vapcguy: Use Power Point instead of Word. This will save a transparent PNG. Excel won't work as it has the "Save as Picture" menu item missing. (tested with MS Office 2016) – Leviathan – 2019-02-12T15:14:07.523

@Leviathan Yeah, I've since found out PowerPoint has it. But starting in Office 2013, both Word and PowerPoint have it. Both have a "Format Picture" ribbon menu when you select a picture that's embedded, and you select Format > Color > Set Transparent Color. So this answer was right, just didn't specify which Office version. – vapcguy – 2019-02-26T12:47:53.033

7

The Windows XP version of MS Paint supports transparency. And users of Windows 7 Professional, Enterprise, or Ultimate can use the XP Mode feature of Windows 7 to run Windows XP in a window, run the old Paint there, and set the transparency of an image file:

enter image description here

You can also run individual XP Mode applications directly from your Windows 7 Start menu, i.e., without explicitly launching XP Mode first.

If you haven't enabled XP Mode on your Windows 7 machine and wish to do so, you can get it free using the Microsoft instructions here. Do note the security advice on that page, remembering XP is now no longer supported.

Reg Edit

Posted 2012-11-02T15:17:15.930

Reputation: 1 930

5

Solved this by copying mspaint.exe to xppaint.exe on an xp computer. Then copied xppaint to a Windows 7 computer. When transparency is required, use xppaint. Many features in Win 7's Paint are better, but not this one.

superuserfan

Posted 2012-11-02T15:17:15.930

Reputation: 51

Not sure how this covers Win7 mspaint - If your suggesting an alternative can please make note of it in your answer – 50-3 – 2013-09-10T22:06:10.953

1

Great idea! But there is a bit more to it, as shown here - http://www.askvg.com/how-to-get-the-good-old-ms-paint-without-ribbons-working-in-windows-7/

– ipso – 2013-12-14T22:11:16.490

4

In Windows8 I just found a Home->Select->TransparentSelection which's tooltip says "Make the background colour in the selection transparent or opaque".

I have yet to find out if it does what it believe it says though. (my first attempt failed but possibly because pebkac)

enter image description here

LosManos

Posted 2012-11-02T15:17:15.930

Reputation: 343

7I don't think this is related to creating transparent images. From the Window 8 Paint Documentation..... Choose Solid Background or Transparent Background when you copy and paste part of a picture using the Free-Form Select or the Select tool. When you use the Solid Background option, the background color is included in your selection when you paste it somewhere else in the picture. When you use the Transparent Background option, the background color is not included in the selection, so any areas using that color are transparent and allow the rest of the picture to appear in its place. – grantnz – 2016-04-26T10:45:37.030

1Let me try to give a different explanation of this. First of all, you have 2 colors to work with in this version of Paint, a primary and a secondary color. What the "transparent selection" option does is it subtracts color 2 from any selection you make. That's it! You don't need to necessarily copy and paste the selection, you can just drag it with the mouse. – Samir – 2017-08-11T11:44:27.653

Here is an example. Create a white canvas, draw a solid blue square without any outline color. Draw a solid green square by clicking and dragging out from the center of the blue square so that they overlap. Now select the same blue color as color 2. Now click on the selection tool and enable the transparent selection option. Now select the intersection between the blue and green squares and drag it out with the mouse. You will see that only the green part is moved or cut out. – Samir – 2017-08-11T11:50:21.347

It essentially subtracts color 2 from the selection. It just needs to be the same color as the foreground or background color. This is not very useful feature. But it does add some functionality. I believe this is what used be called "draw opaque" in the older versions of Paint. – Samir – 2017-08-11T11:52:37.903

2

Say hello to Microsoft Paint 3D!

Although this does not directly address the specific question of how to do this in the version of Paint found in Windows 7, it does address the question of how to do this in Paint in general, which is exactly how the question was posed.

They have heard your plead all the way to Washington. As part of the creator's update to Windows 10, Microsoft has introduced Paint 3D, which is a modern Windows app. As opposed to the old classic Paint "program". The classic Paint is now deprecated and may be removed in future updates of Windows 10.

So here is how you draw a star on a transparent background in Paint 3D.

Start Paint 3D and click on New if you are presented with the welcome screen, or just click outside of the modal window to continue.

image1

Click on the Canvas tab. Flip the Transparent canvas switch to On.

image2

Click on the Stickers tab. Select the five point star shape.

image3

Draw your star.

image4

Set the fill color to yellow, and set its type to solid. Set the line type to none.

image5

Click outside of the selection area to deselect the star. A proud new star is born!

image6

Now click on the left most tap, the "expand menu" tab.

image7

Click on "export file", then "2d - png". The reason that "2d" is in the file type name is because Paint 3D, as the name suggests, supports 3D objects. Since you want a flat image, and PNG format gives you that, Microsoft has decided to prefix the name with "2d". This is just regular old PNG that you know and love, and it does support transparency which is what you want.

Note that there is also an option to "save" or to "save as". You can save the file this way too. The only difference being that it also offers the option to save your work as a project so you can come back to it later, which is something that the classic Paint does not support. In the old Paint, once you have saved the file and closed the program, you can no longer step back and undo your changes. Paint 3D supports layers, so you can use that to easily make adjustments later.

Now close the program. Unless you want to work on it later, click on "don't save".

image8

As you can see here, the background is transparent.

image9

Samir

Posted 2012-11-02T15:17:15.930

Reputation: 17 919