473,396 Members | 1,724 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,396 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 3171
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.