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


In This Topic
    GetImage(Assembly,String,Single) Method
    In This Topic
    Get the specified scale Image of specified Image resource. The result Image is scaled from the existing versions of the Image resource of all DPI supporting scale versions (see GetDPISupportingScaleFactor(void)).
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetImage( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String, _
       ByVal requestScaleFactor As Single _
    ) As Image
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim requestScaleFactor As Single
    Dim value As Image
     
    value = DPIUtils.GetImage(assembly, resourcePath, requestScaleFactor)

    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 original path (1x version) of specifed Image resource.
    requestScaleFactor
    The scale factor of the result Image.

    Return Value

    The scaled Image.
    See Also