mirror of
https://github.com/cyanfish/naps2.git
synced 2024-08-16 10:40:35 +03:00
13 lines
314 B
C#
13 lines
314 B
C#
using Eto.Drawing;
|
|
|
|
namespace NAPS2.EtoForms;
|
|
|
|
public class DefaultIconProvider : IIconProvider
|
|
{
|
|
public Image? GetIcon(string name, bool oversized = false)
|
|
{
|
|
var data = (byte[]?) Icons.ResourceManager.GetObject(name);
|
|
if (data == null) return null;
|
|
return new Bitmap(data);
|
|
}
|
|
} |