using System; using Emgu.CV; using Emgu.CV.Structure; namespace BBIWARG.Input.InputProviding { /// /// Encapsulates the arguments of the event that a new frame is available. /// public class NewFrameEventArgs : EventArgs { /// /// the id of the frame /// public int FrameID { get; private set; } /// /// the height of all images in the frame /// public int Height { get { return DepthImageRaw.Height; } } public Image DepthImageRaw { get; private set; } /// /// the with of all images in the frame /// public int Width { get { return DepthImageRaw.Width; } } /// /// Constructs a NewFrameEventArgs. /// /// frame id public NewFrameEventArgs(int frameID, Image depthImageRaw) { FrameID = frameID; DepthImageRaw = depthImageRaw; } } }