Table of Contents

Method LoadImageFromAssembly

Namespace
Alternet.Common
Assembly
Alternet.Common.Winforms.v10.dll

LoadImageFromAssembly(Assembly, string)

Loads an image from an embedded resource in the specified assembly.

public static Image LoadImageFromAssembly(Assembly assembly, string resourceName)

Parameters

assembly Assembly

The assembly containing the embedded resource.

resourceName string

The name of the resource to load.

Returns

Image

The loaded Image object.

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.