Exemple #1
0
        public CoordinateSystem(Drawing drawing)
        {
            Check.NotNull(drawing);

            Drawing              = drawing;
            Drawing.SizeChanged += Drawing_SizeChanged;
            Origin = PhysicalSize.Scale(0.5).SnapToIntegers().Minus(0.5);
        }
        private static IEnumerable <IGraphNode> GetActorNodes(PhysicalSize physicalSize, IGraphNode baseNode, IMap map)
        {
            yield return(baseNode);

            if (physicalSize == PhysicalSize.Size7)
            {
                var neighbors = map.GetNext(baseNode);
                foreach (var neighbor in neighbors)
                {
                    yield return(neighbor);
                }
            }
        }
Exemple #3
0
 public override int GetHashCode() =>
 (BackgroundColor?.GetHashCode() ?? 0) ^
 PhysicalSize.GetHashCode() ^
 Dpi.GetHashCode();
Exemple #4
0
 public bool Equals(InternalImageOptions other) =>
 Nullable.Equals(BackgroundColor, other.BackgroundColor) &&
 PhysicalSize.Equals(other.PhysicalSize) &&
 Dpi.Equals(other.Dpi);