'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)
public static Image GetImage( Assembly assembly, string resourcePath, float 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.