Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

How to display windows icon in C#


  • This topic shows how to display windows icon in C# programming.
  • Display windows icon in C# is done with the help of System.Drawing Class.

System.Drawing NameSpaceHow to display windows icon in C#

  • The System.Drawing namespace provides access to GDI+ basic graphics functionality.
  • More advanced functionality is provided in the System.Drawing.Drawing2D, System.Drawing.Imaging, and System.Drawing.Text namespaces.
  • The Graphics class provides methods for drawing to the display device.
  • Classes such as Rectangle and Point encapsulate GDI+ primitives.
  • The Pen class is used to draw lines and curves, while classes derived from the abstract class Brush are used to fill the interiors of shapes.

Graphics Class – How to display windows icon in C#

  • Graphics class encapsulates a GDI+ drawing surface. This class cannot be inherited.
  • Syntax

Graphics.DrawIcon Method How to display windows icon in C#

  • Graphics.DrawIcon method is used to draw the image represented by the specified Icon at the specified coordinates.



Graphics.Drawicon Method (Icon, Rectangle)How to display windows icon in C#

  • Draws the image represented by the specified Icon within the area specified by a Rectangle structure.
  • Syntax

  •  Icon – Targeted icon
  • Rectangle – Rectangle structure that specifies the location and size of the resulting image on the display surface. The image contained in the icon parameter is scaled to the dimensions of this rectangular area.

Graphics.Drawicon Method (Icon, Int32, Int32)How to display windows icon in C#

  • Draws the image represented by the specified Icon at the specified coordinates.
  • Syntax

How to display windows icon in C#Complete Code

How to display windows icon in C# - windows icon

How to display windows icon in C# – windows icon

How to display windows icon in C#

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">