合并图像处理库,删除图像lib库

This commit is contained in:
李伟
2026-04-13 13:40:37 +08:00
parent 2a762396d5
commit c7ce4ea6a1
105 changed files with 16341 additions and 133 deletions
+39
View File
@@ -0,0 +1,39 @@
namespace XP.Camera;
/// <summary>相机设备信息。</summary>
public record CameraInfo(
string ModelName,
string SerialNumber,
string VendorName,
string DeviceType
);
/// <summary>图像采集成功事件参数。</summary>
public class ImageGrabbedEventArgs : EventArgs
{
public byte[] PixelData { get; }
public int Width { get; }
public int Height { get; }
public string PixelFormat { get; }
public ImageGrabbedEventArgs(byte[] pixelData, int width, int height, string pixelFormat)
{
PixelData = pixelData;
Width = width;
Height = height;
PixelFormat = pixelFormat;
}
}
/// <summary>图像采集失败事件参数。</summary>
public class GrabErrorEventArgs : EventArgs
{
public int ErrorCode { get; }
public string ErrorDescription { get; }
public GrabErrorEventArgs(int errorCode, string errorDescription)
{
ErrorCode = errorCode;
ErrorDescription = errorDescription;
}
}