using System;

namespace XP.Hardware.Detector.Abstractions
{
    /// <summary>
    /// 图像采集事件参数 | Image captured event arguments
    /// 携带图像数据和元信息
    /// </summary>
    public class ImageCapturedEventArgs : EventArgs
    {
        /// <summary>
        /// 16 位图像原始数据（无符号）| 16-bit raw image data (unsigned)
        /// </summary>
        public ushort[] ImageData { get; set; }

        /// <summary>
        /// 图像宽度 | Image width
        /// </summary>
        public uint Width { get; set; }

        /// <summary>
        /// 图像高度 | Image height
        /// </summary>
        public uint Height { get; set; }

        /// <summary>
        /// 帧号 | Frame number
        /// </summary>
        public int FrameNumber { get; set; }

        /// <summary>
        /// 存储路径 | Save path
        /// </summary>
        public string SavePath { get; set; }

        /// <summary>
        /// 曝光时间（毫秒）| Exposure time (milliseconds)
        /// </summary>
        public uint ExposureTime { get; set; }

        /// <summary>
        /// 采集时间戳 | Capture timestamp
        /// </summary>
        public DateTime CaptureTime { get; set; }
    }
}
