check point

This commit is contained in:
meelstorm
2025-07-14 12:03:59 +02:00
commit d3cb790bd9
431 changed files with 44078 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using System.Drawing;
using System.Drawing.Imaging;
namespace Inspectron.Camera.Image
{
public class BitmapImage : IImage
{
private readonly Bitmap _bitmap;
public BitmapImage(Bitmap bitmap)
{
_bitmap = bitmap;
}
public int Width => _bitmap.Width;
public int Height => _bitmap.Height;
public int Channels => throw new System.NotImplementedException();
public Bitmap Bitmap => (Bitmap)_bitmap.Clone();
public void Dispose()
{
}
public void Save(string path)
{
_bitmap.Save(path,ImageFormat.Bmp);
}
}
}