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


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

    Parameters

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

    Return Value

    The Bitmap from the specified resource. If the specified resource doesn't exist, or the specified resource is not Bitmap resource, return null.
    See Also