Add project files.

This commit is contained in:
recroom2016tutorial
2022-06-11 21:42:46 -04:00
parent 7d424a2611
commit e95084d5fe
34 changed files with 5689 additions and 0 deletions

27
Launcherapi/Images.cs Normal file
View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenRec2.Launcherapi
{
internal class Images
{
//to be able to read image files as images in gui
public static Image bytearraytoimage(byte[] source)
{
try
{
MemoryStream ms = new MemoryStream(source);
Image ret = Image.FromStream(ms);
return ret;
}
catch
{
return null;
}
}
}
}