Example #1
0
        void EventAggregator_PortraitFound(object sender, MiscUtil.EventArgs <Damany.Imaging.Common.Portrait> e)
        {
            var msg = new Damany.RemoteImaging.Net.Messages.Portrait();

            msg.FaceImage   = e.Value.GetIpl().ToBitmap();
            msg.CaptureTime = e.Value.CapturedAt;

            if (Bus != null)
            {
                try
                {
                    Bus.Publish(msg);
                }
                catch (Exception)
                {
                    throw;
                }
            }
        }
        void EventAggregator_PortraitFound(object sender, MiscUtil.EventArgs<Damany.Imaging.Common.Portrait> e)
        {
            var msg = new Damany.RemoteImaging.Net.Messages.Portrait();
            msg.FaceImage = e.Value.GetIpl().ToBitmap();
            msg.CaptureTime = e.Value.CapturedAt;

            if (Bus != null)
            {
                try
                {
                    Bus.Publish(msg);
                }
                catch (Exception)
                {

                    throw;
                }

            }
        }