how to make icons more beautiful?

  • Thread starter Thread starter sto
  • Start date Start date
S

sto

look at this picture
http://upload.cs99.net/e.gif

i use the function SHGetFileInfo to get file icons. but these icons
are not very nice. there are some black things round of the icons.

many applications use system icons for files. how did their
programmers solve this problem in these apps?
 
Most of the MS icons use the ~pinkish back color for the transparent color
(I think color 255,0,255). Then just set the transparent color property of
the control to the 255,0,255 color. You can replace the black here with
this color using paint program or you can try to set trans color to black to
remove the background black, but that is not good as most icons have some
black in them and you don't want that to disappear. I would grab new icons
that have to background color set to color above or change your icons to
match. HTH

--
William Stacey, MVP

sto said:
look at this picture
http://upload.cs99.net/e.gif

i use the function SHGetFileInfo to get file icons. but these icons
are not very nice. there are some black things round of the icons.

many applications use system icons for files. how did their
programmers solve this problem in these apps?
 
The trick is to use an application that supports 24bit color icons and an
alpha channel. Support for alpha channels in icons was only added relatively
recently and isn't supported by Visual Studio for a start (VS is pretty bad
for icon editing).

Alpha channels are important because it allows pixels to have a percentage
of opacity, so that its anti-aliased edges seamlessly merge into the
background.

My choice: use a vector app to create the icon (I use CorelDraw), that way
it's easy to edit it later and can easily be resized for differnt icon sizes
without any degredation. Export the vector to PNG with a transparent
background. Then import that into a good icon editor that supports alpha
channel icons and you should get a good result (I use Axialis, which also
supports 48 pixel icons).

Hope that helps.

sto said:
look at this picture
http://upload.cs99.net/e.gif

i use the function SHGetFileInfo to get file icons. but these icons
are not very nice. there are some black things round of the icons.

many applications use system icons for files. how did their
programmers solve this problem in these apps?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top