Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetScaleResourcePaths Method
The original path (1x version) of specifed resource.
The scale factors of scale versions.


In This Topic
    GetScaleResourcePaths Method
    In This Topic
    Get the path of scale versions from original path (1x version) of a specified resource. Note: The rule to form the path of scale version from original path (1x version) of a specified resource is: Add the ".(scaleFactor)x" to right before the "." that start the file extension. For example: 1.5x version of D:\abc.png is D:\abc.1.5x.png.
    Syntax
    'Declaration
     
    
    Public Shared Function GetScaleResourcePaths( _
       ByVal resourcePath As String, _
       ByVal scaleFactors() As Single _
    ) As String()
    'Usage
     
    
    Dim resourcePath As String
    Dim scaleFactors() As Single
    Dim value() As String
     
    value = DPIUtils.GetScaleResourcePaths(resourcePath, scaleFactors)
    public static string[] GetScaleResourcePaths( 
       string resourcePath,
       float[] scaleFactors
    )

    Parameters

    resourcePath
    The original path (1x version) of specifed resource.
    scaleFactors
    The scale factors of scale versions.

    Return Value

    String array of the path of scale versions of a specifed resource.
    See Also