'Declaration
Public Overloads Shared Function GetImage( _ ByVal assembly As Assembly, _ ByVal resourcePath As String _ ) As Image
'Usage
Dim assembly As Assembly Dim resourcePath As String Dim value As Image value = DPIUtils.GetImage(assembly, resourcePath)
public static Image GetImage( Assembly assembly, string resourcePath )
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 path of specifed Image resource.
Return Value
The Image from the specified resource. If the specified resource doesn't exist or can't be opened, or the specified resource is not Image resource, return null.