Beispiel #1
0
        public override void AddImageDrawing(Bitmap bmp)
        {
            view.BeforeAddImageDrawing();
            AbstractDrawing drawing = new DrawingBitmap(frameServer.VideoReader.Current.Timestamp, frameServer.VideoReader.Info.AverageTimeStampsPerFrame, bmp);

            frameServer.Metadata.AddDrawing(frameServer.Metadata.HitKeyframe.Id, drawing);
        }
Beispiel #2
0
        public override void AddImageDrawing(string filename, bool isSvg)
        {
            if (!File.Exists(filename))
            {
                return;
            }

            view.BeforeAddImageDrawing();

            if (frameServer.Metadata.HitKeyframe == null)
            {
                return;
            }

            AbstractDrawing drawing = null;

            if (isSvg)
            {
                drawing = new DrawingSVG(frameServer.VideoReader.Current.Timestamp, frameServer.VideoReader.Info.AverageTimeStampsPerFrame, filename);
            }
            else
            {
                drawing = new DrawingBitmap(frameServer.VideoReader.Current.Timestamp, frameServer.VideoReader.Info.AverageTimeStampsPerFrame, filename);
            }

            if (drawing != null)
            {
                AddDrawingWithMemento(frameServer.Metadata.HitKeyframe.Id, drawing);
            }
        }