Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Windows
Previously, I make icons solely with the icon editor in VS. But the annoying thing is that parts of the icon pixels that I do not us , when set to white does not appear as transparent on desktop(when installed) nor window title bar.Please how do I make the unused region of my icon transparent. I see the icon of other application I use do not have this problem. On used regions are transparent on the desk top.
 
The new way I make icons now is to design one with COREL DRAW and that copy and paste in the icon editor. But the unfortunate thing is that the editor changes any color that does not exist on the color palete(or color selection box or color selection template)into the closest in the existing palette. How do I expand the available color in the colour palette to a much larger amount of colour options so that my coor draw image is not distorted by the editor.
 
How can one make an icon that has transparent background?
Posted 2-Oct-12 5:39am
Gbenbam875
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

This is a good idea to add resources to the project via "Add existing file" and to add application icon from a separate file. Main thing here is the convenience for maintenance and no risk to screw up something not related to the separate icon or bitmap file.
 
For icons, I would advice using the freeware editor IcoFX:
http://en.wikipedia.org/wiki/IcoFX[^],
http://icofx.ro/[^].
 
Of course it supports transparency, but also a lot more, in particular, good quality re-sampling for different icon sizes; and you can manually improve the results. (As you probably know, and icon should contain several images for a set of standard icon sizes; if you fail to do it, it will still be shown correctly, but re-sampling will be done be during the run time of your application, with questionable quality.)
 
You can also edit the main image or part of it using some editor of your choice, and then finally edit or package it using IcoFX. I suggest you try two open-source products: GIMP (pixel graphics) and Inkscape (vector, based on SVG, import/export from/to many formats, including (importantly!) XAML):
http://en.wikipedia.org/wiki/GIMP[^],
http://www.gimp.org/[^];
http://en.wikipedia.org/wiki/Inkscape[^],
http://inkscape.org/[^].
 
Good luck,
—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I don't remember exactly which was the colour to be selected to get the transparent background (there where two tricky colors there).
 
But you can always use the eraser tool to get the transparent background.
 
Good luck!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 534
1 Gihan Liyanage 298
2 RyanDev 270
3 Sergey Alexandrovich Kryukov 223
4 Richard Deeming 185
0 Sergey Alexandrovich Kryukov 8,906
1 OriginalGriff 7,771
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100