'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.