예제 #1
0
        public bool HitTest(Point mouse, Point imageLocation, float imageZoom)
        {
            // Note: at the moment this method does not support extra drawings.

            if (metadata == null)
            {
                return(false);
            }

            ImageToViewportTransformer transformer = new ImageToViewportTransformer(imageLocation, imageZoom);
            PointF imagePoint = transformer.Untransform(mouse);

            int keyframeIndex = 0;

            return(metadata.IsOnDrawing(keyframeIndex, imagePoint, fixedTimestamp));
        }