Пример #1
0
        public void InvertUnchecked(Scanline scan)
        {
            int x = scan.X;

            while (x < scan.X + scan.Length)
            {
                InvertUnchecked(x, scan.Y);
                ++x;
            }
        }
Пример #2
0
        public void SetUnchecked(Scanline scan, bool newValue)
        {
            int x = scan.X;

            while (x < scan.X + scan.Length)
            {
                SetUnchecked(x, scan.Y, newValue);
                ++x;
            }
        }
Пример #3
0
 public override bool Equals(object obj)
 {
     if (obj is Scanline)
     {
         Scanline rhs = (Scanline)obj;
         return(x == rhs.x && y == rhs.y && length == rhs.length);
     }
     else
     {
         return(false);
     }
 }
        public void Set(Scanline scan, bool newValue)
        {
            int x = scan.X;

            while (x < scan.X + scan.Length)
            {
                Set(x, scan.Y, newValue);
                ++x;
            }
        }
        public void Invert(Scanline scan)
        {
            int x = scan.X;

            while (x < scan.X + scan.Length)
            {
                Invert(x, scan.Y);
                ++x;
            }
        }
Пример #6
0
 public void Apply(Surface surface, Scanline[] scans)
 {
     foreach (Scanline scan in scans)
     {
         Apply(surface, scan);
     }
 }
Пример #7
0
 public void Apply(Surface surface, Scanline scan)
 {
     Apply(surface.GetPointAddress(scan.X, scan.Y), scan.Length);
 }
Пример #8
0
 public void Apply(Surface surface, Scanline scan)
 {
     Apply(surface.GetPointAddress(scan.X, scan.Y), scan.Length);
 }