Method LoadImageFromAssembly
LoadImageFromAssembly(Assembly, string)
Loads an image from an embedded resource in the specified assembly.
public static Image LoadImageFromAssembly(Assembly assembly, string resourceName)
Parameters
assembly
AssemblyThe assembly containing the embedded resource.
resourceName
stringThe name of the resource to load.
Returns
Exceptions
- ArgumentException
Thrown when the assembly or resource name is null or empty.
- FileNotFoundException
Thrown when the specified resource is not found in the assembly.