示例#1
0
 /// <summary>Creates a new instance of <see cref="T:System.Drawing.Analysis.Manipulation.DefaultScanner"/> using a given <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/>.</summary>
 /// <param name="provider">An <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/> instance</param>
 public DefaultScanner(IGetPixelProvider provider)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     _provider = provider;
     _view = new Rectangle(0, 0, _provider.Size.Width, _provider.Size.Height);
 }
示例#2
0
 /// <summary>Creates a new instance of <see cref="T:System.Drawing.Analysis.Manipulation.RectangleScanner"/> using a given <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/>.</summary>
 /// <param name="provider">An <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/> instance</param>
 /// <param name="scanDirection">The <see cref="T:System.Drawing.Analysis.Manipulation.RectangleScanDirection"/> for the scanner to use.</param>
 public RectangleScanner(IGetPixelProvider provider, RectangleScanDirection scanDirection)
 {
     if (provider == null)
         throw new ArgumentNullException("provider");
     _provider = provider;
     ScanDirection = scanDirection;
     throw new NotImplementedException();
 }
示例#3
0
 /// <summary>Creates a new instance of <see cref="T:System.Drawing.Analysis.Manipulation.RectangleScanner"/> using a given <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/> scanning from top to bottom.</summary>
 /// <param name="provider">An <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/> instance</param>
 public RectangleScanner(IGetPixelProvider provider)
     : this(provider, RectangleScanDirection.TopToBottom)
 {
 }
示例#4
0
 /// <summary>Creates a new instance of <see cref="T:System.Drawing.Analysis.Manipulation.RadialScanner"/> using a given <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/> scanning clockwise.</summary>
 /// <param name="provider">An <see cref="T:System.Drawing.Analysis.IGetPixelProvider"/> instance</param>
 public RadialScanner(IGetPixelProvider provider)
     : this(provider, RadialScanDirection.Clockwise)
 {
 }