'Declaration
Public Overloads Shared Function GetBitmap( _ ByVal assembly As Assembly, _ ByVal resourcePath As String, _ ByVal requestScaleFactor As Single _ ) As Bitmap
'Usage
Dim assembly As Assembly Dim resourcePath As String Dim requestScaleFactor As Single Dim value As Bitmap value = DPIUtils.GetBitmap(assembly, resourcePath, requestScaleFactor)
public static Bitmap GetBitmap( Assembly assembly, string resourcePath, float requestScaleFactor )
Parameters
- assembly
- The assembly that contain the specified resource. If the assembly is null, that mean the specified resource is file.
- resourcePath
- The original path (1x version) of specifed Bitmap resource.
- requestScaleFactor
- The scale factor of the result Bitmap.
Return Value
The scaled Bitmap.