public void InvertUnchecked(Scanline scan) { int x = scan.X; while (x < scan.X + scan.Length) { InvertUnchecked(x, scan.Y); ++x; } }
public void SetUnchecked(Scanline scan, bool newValue) { int x = scan.X; while (x < scan.X + scan.Length) { SetUnchecked(x, scan.Y, newValue); ++x; } }
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; } }
public void Apply(Surface surface, Scanline[] scans) { foreach (Scanline scan in scans) { Apply(surface, scan); } }
public void Apply(Surface surface, Scanline scan) { Apply(surface.GetPointAddress(scan.X, scan.Y), scan.Length); }