示例#1
0
        public static void DrawGuidelines(Data.Layer layer, CanvasDrawingSession ds, float rescale, Data.Geometry.Rect drawingRect)
        {
            var halfSize         = 4 * rescale;
            var selectedHalfSize = 5 * rescale;

            (IEnumerable <Data.Guideline>, Color)[] drawingPlan =
示例#2
0
 public static void DrawGrid(Data.Layer layer, CanvasDrawingSession ds, float rescale, Data.Geometry.Rect drawingRect)
 {
     /*var color = Color.FromArgb(255, 220, 220, 220);
      * var gridSize = 1;
      *
      * for (int i = gridSize * (int)(bottomLeft.X / gridSize); i <= topRight.X; i += gridSize)
      * {
      *  ds.DrawLine(i, (float)topRight.Y, i, (float)bottomLeft.Y, color, strokeWidth: rescale);
      * }
      * for (int i = gridSize * (int)(bottomLeft.Y / gridSize); i <= topRight.Y; i += gridSize)
      * {
      *  ds.DrawLine((float)bottomLeft.X, i, (float)topRight.X, i, color, strokeWidth: rescale);
      * }*/
 }