Two basic Icon() questions.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have some basic questions regarding Icons.

The ms-help page for System.Drawing.Icon

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref8/html/T_System_Drawing_Icon_Members.htm

says that "Icons can be thought of as transparent bitmaps, although their
size is determined by the system."

1) Can you please remind me why it is good that icons have transparent
regions? When is that feature useful?

2) How does the system determine their size? Does the system limit the icon
size to 64x64 pixels, 32x32, or some such sensible icon size?


Thanks for ty
 
Hi Allan,

When a bitmap has transparent background, means when it's drawed over
another object, you will still see the object behind the icon through the
background instead of seeing a square block. You should be using this
feature everyday: most window will have an icon in its title bar, and the
icon is normally drawn using transparent background. Also, icons are
usually used by a treeview or listview that you will see in explorer
window. Icons' background are transparent so that you could see the
background color of the explorer window.

The icon size is not limited to 64x64; for example, Vista has support for
256x256 size: http://msdn2.microsoft.com/en-us/library/aa511280.aspx

Hope this helps.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thank you for the reminders on Icon backgrounds.
And thanks for the link to the Vista Icon guidelines.
 
Back
Top