Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetIcon Method / GetIcon(Assembly,String,Int32,Int32) Method
The assembly that contain the specified icon resource. If the assembly is null, that mean the specified icon resource is file.
The path of specifed icon resource.
Width of icon.
Height of icon.


In This Topic
    GetIcon(Assembly,String,Int32,Int32) Method
    In This Topic
    Gets the icon from the specified resource.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetIcon( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String, _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) As Icon
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim width As Integer
    Dim height As Integer
    Dim value As Icon
     
    value = DPIUtils.GetIcon(assembly, resourcePath, width, height)
    public static Icon GetIcon( 
       Assembly assembly,
       string resourcePath,
       int width,
       int height
    )

    Parameters

    assembly
    The assembly that contain the specified icon resource. If the assembly is null, that mean the specified icon resource is file.
    resourcePath
    The path of specifed icon resource.
    width
    Width of icon.
    height
    Height of icon.
    See Also