예제 #1
0
        /// <summary>
        /// Draw a box from a point at top left with radius width and radius length.
        /// </summary>
        public void DrawBox(IImageProcessingContext context, IEnumerable <PointOfInterest> pointsOfInterest, int radius)
        {
            foreach (PointOfInterest poi in pointsOfInterest)
            {
                var pen = new Pen(Color.Crimson, 1);

                //graphics.DrawRectangle(pen, poi.Point.X, height - poi.Point.Y - 1, radius, radius);
                context.DrawRectangle(pen, poi.Point.X, poi.Point.Y, radius, radius);
            }
        }