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


In This Topic
    GetImage(Assembly,String) Method
    In This Topic
    Get the Image from the specified resource.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetImage( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String _
    ) As Image
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim value As Image
     
    value = DPIUtils.GetImage(assembly, resourcePath)
    public static Image GetImage( 
       Assembly assembly,
       string resourcePath
    )

    Parameters

    assembly
    The assembly that contain the specified Image resource. If the assembly is null, that mean the specified Image resource is file.
    resourcePath
    The path of specifed Image resource.

    Return Value

    The Image from the specified resource. If the specified resource doesn't exist or can't be opened, or the specified resource is not Image resource, return null.
    See Also