473,289 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

how to make icons more beautiful?

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?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #1
3 3162
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" <cn****@msn-dot-com.no-spam.invalid> wrote in message
news:40********@Usenet.com...
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?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


Nov 16 '05 #2
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" <cn****@msn-dot-com.no-spam.invalid> wrote in message
news:40********@Usenet.com...
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?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com


Nov 16 '05 #3
sto
thanx very much

i found this.

http://www.vbaccelerator.com/home/NE...ll/article.asp
now file icons with alpha channels can be well displayed in my
program.

http://upload.cs99.net/e2.gif
[img:8d6e8602eb]http://upload.cs99.net/e3.gif[/img:8d6e8602eb]

i am reading their source code to understand how to solve this.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: drum118 | last post by:
Has anyone experience problems with firewall blocking some icons and not others. I am using Zone alarm and have the popup set for medium and it was blocking some of the icons for some strange...
0
by: sto | last post by:
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 the icons. many...
6
by: B-Dog | last post by:
Does anyone know where I can find some professional looking icons that are the standard windows collection for developers? The ones that came on the VS cd are pretty lame. Thanks
17
by: Brett | last post by:
I'd like references on where to find some good (quality) icons to use for form and application icons (for the EXE). Most of the free stuff isn't that great looking and there isn't a good...
3
by: Pucca | last post by:
HI, I'm using vs2005. There are very few icons I found in the folder of vs2005imagelibrary under the install folder of vs2005. Does anyone know where I can download icons that are typically used...
1
by: Jon Slaughter | last post by:
I'm trying to create a windows explorer like app and the problem I'm having is getting the proper icon for the folders and items. In windows explorer there are many different icons and most seem...
5
by: fAnSKyer/C# newbie | last post by:
How to make GUI more beautiful? Can any give any hint? Or some examples that downloadeable from internet? I am using C# and visual studio 2005 Thanks
8
by: js | last post by:
Hi, Have you ever seen Beautiful Python code? Zope? Django? Python standard lib? or else? Please tell me what code you think it's stunning.
1
by: Mark B | last post by:
I am trying to programmatically create some icons for an Office 2007 add-in (VB/C#) that will appear on the navigation Ribbon. The particular icon is simply a colored round circle representing a...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.