Esempio n. 1
0
        public void addRandomDot()
        {
            Random rnd = new Random();
            int    x   = rnd.Next(100, 1000);
            int    y   = rnd.Next(100, 600);

            DotShape dot = new DotShape(new RectangleF(x, y, 20, 20));

            ShapeList.Add(dot);
        }
Esempio n. 2
0
 public static CanvasGeometry GetDotGeometry(ICanvasResourceCreator resourceCreator, DotShape shape,
                                             Vector2 point, float dotWidth, float dotHeight)
 {
     return(CanvasGeometry.CreateCircle(resourceCreator, point, dotWidth / 2));
 }