473,699 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3187
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
2432
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 reason that I have not seen before. Any reason why they are been blocked as well not showing up on view source as I am at a lost?
0
372
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 applications use system icons for files. how did their programmers solve this problem in these apps?
6
2361
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
14681
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 selection. A site offering previews of icons or purchase of a single icon would be nice. Thanks, Brett
3
3953
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 in the toolstripmenu? Icons like exit, copy, back and forward arrow..... Also, can I use all these icons in my application? -- Thanks.
1
5095
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 to be in the shell32.dll. The problem is that there also seems to be custom icons that are installed by applications. For example, "My Music" In My Documents has an icon that is different from the normal folders. I have installed an application...
5
6441
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
2767
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
3435
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 colored dot to indicate the category of an item. I have been able to draw basic circles using the System.Drawing.Drawing2D namespace. What I want though is 'beautiful' icons (e.g. that look the the Windows Vista bottom-left Start button, save...
0
8703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9185
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9050
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8935
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4389
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.