Get Height and size of an Icon : Icon « 2D Graphics « VB.Net Tutorial






Imports System.Drawing.Drawing2D
Imports System.Windows.Forms
Imports System.Drawing
public class MainClass
   public Shared Sub Main
        ' Create an Icon
        Dim curIcon As New Icon("1.ico")
        ' Set Form's icon
        'Me.Icon = curIcon
        
        Console.WriteLine(curIcon.Height)
        Console.WriteLine(curIcon.Width)
        Console.WriteLine(curIcon.Size)
   End Sub
End class








17.44.Icon
17.44.1.Get Height and size of an Icon
17.44.2.Draw an IconDraw an Icon