Bitmap.FromResource Method (IntPtr, String)
Creates a Bitmap from the specified Windows resource.
Assembly: System.Drawing (in System.Drawing.dll)
A handle to an instance of the executable file that contains the resource.
A string that contains the name of the resource bitmap.
Bitmap.Bitmap(Type, String). works only with bitmaps that are named resources in a DLL.requires security permission to call unmanaged code. For a managed alternative for creating a bitmap from an embedded resource, see
Available since 1.1