查看文章 |
This article answers basic questions about icons. How do icons differ from images? What's the structure of an icon? How are icons distributed? What's the difference between Windows XP icons and older icons? To understand this article you should already know basic terms related to computer imaging, namely pixel, image resolution, color depth, and image file format. What is an Icon?A computer icon is a graphical symbol that represents a property, function, or entity. In computer applications, icons are used to quickly execute commands or open programs and documents. You access the functionality behind an icon by clicking or double-clicking it. Operating systems often allow you to customize visuals of various objects by applying your own custom icons. You may obtain icons from various sources (for example from our icon library) or you can build your own. If you choose to pursue the more difficult but more rewarding path (creating your own icons), you will need to know more than what was already said. In this introduction to Windows XP icons, you will learn:
What are the differences between an image and an icon?Icons are often compared to images. This comparison is not entirely fair. It is like comparing shoes to leather. Shoes may indeed be made of leather. Shoes may be considered a specialization of leather with some added bells and whistles. But then there are shoes that are not made of leather... An icon (graphical symbol) can easily be represented by an image. But this could, and probably would change. In future version of your operating system, icons may be using animations or even 3D models. Icons would still be graphical symbols, but not images anymore. For now, let's get back to year 2005, where icons and images are closest friends. A computer image is a raster (composed of pixels) or vector (composed of lines, rectangles, circles, etc.) picture. It may have arbitrary size, resolution and color depth. It is stored using one of the standard formats (BMP, PNG, GIF, JPEG, TIFF, ...). Icon is composed of arbitrary number of images. This is because icon must be usable under wide variety of conditions. Icon should look good on high-resolution LCD as well as on a ten years old monochromatic monitor. There are multiple images inside an icon, each optimized for best experience under specific circumstances. Images usually have rectangular shape, icons on the other hand do not. When you put an icon on your desktop, it appears to have arbitrary shape and you can see background around that shape. Internally, the icon still has a rectangular shape, just like an image. But icons always support per-pixel transparency, which means that any pixel can be marked either transparent or opaque.
What is the structure of an icon?We have already mentioned in previous paragraph, that an icon is composed of several images. They have different sizes (or resolutions) and color depths. Windows defines standard sizes (16x16, 32x32, 48x48) and standard color depths (16 colors, 256 colors, 16.8M colors), that should be present in any general-purpose icon.
It is very important to create several image formats in an icon (especially if you whish to redistribute it) in order to be compatible with all screen configurations. How does Windows use the various sizes and color depths?Image sizes:
Color depths:
If an image format is missing, Windows displays the nearest existing image. It works but quality suffers. How are icons distributed?There is a standard file format for icons in Windows. Icon files always have .ICO extension. A file in this formats holds all icon images. Microsoft also recommends how the images should be ordered inside an icon. Icons can also be embedded inside an application (.EXE), application extension (.DLL), or other executable file. This option is used quite often by application developers. Icon editors are usually able to extract icons from applications. There is one more file format related to icons. It is called Icon Library (.ICL) and its sole purpose is to have multiple icons in one file. We consider the value of this format negligible, because anyone can get similar or better results by zipping icons or putting them into an ordinary file-system folder. Let us know, if you have different opinion. What about the new Windows XP icon format?There actually were no changes to the icon format when Windows XP was released. Windows XP is just able to make use of a high quality image format in an icon. In this format, each pixel has one of 16M colors and one of 256 levels of transparency. That means, a pixel is no longer either opaque or transparent. Now it can be semi-transparent. The transparency level is called alpha channel. Thanks to alpha channel, icon can have shadows and smooth edges.
ConclusionThis article explained:
To practise your new knowledge, open an icon in RealWorld Icon Editor. Try making changes to it and watch Windows reacting to them. <iframe height="60" frameborder="0" width="468" scrolling="no" allowtransparency="" src="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8858757583125160&dt=1245981062550&lmt=1245981062&alternate_ad_url=http%3A%2F%2Fwww.rw-designer.com%2Fgoogle_adsense_script.html&format=468x60_as&output=html&correlator=1245981062550&channel=1041703012&url=http%3A%2F%2Fwww.rw-designer.com%2Fwindows-xp-icon&color_bg=EBF2C9&color_text=000060&color_link=0000FF&color_url=008000&color_border=C1D750&ad_type=text_image&ref=http%3A%2F%2Fwww.rw-designer.com%2Fshadow-icons&frm=0&ga_vid=1036718546148240400.1245980029&ga_sid=1245980029&ga_hid=1359014504&ga_fc=true&flash=6.0.79.0&w=468&h=60&u_h=768&u_w=1024&u_ah=738&u_aw=1024&u_cd=32&u_tz=480&u_java=true&dtd=M&xpc=sROzcm0Xyq&p=http%3A//www.rw-designer.com" marginheight="0" marginwidth="0" name="google_ads_frame" style="left: 0px; position: absolute; top: 0px;" id="google_ads_frame1"> | |||||||||||||||||||||||



