Exemple #1
0
 public AnalyzerCanvas(int numRows, int numColumns, AnalyzerCanvasNode[] nodes)
 {
     this.currentPosition = new RowColumnPosition(0, 0);
     this.numRows = numRows;
     this.numColumns = numColumns;
     this.nodes = nodes;
 }
Exemple #2
0
 private static AnalyzerCanvas CreateCanvas(Image image)
 {
     var canvasNodes = new AnalyzerCanvasNode[image.Pixels.Length];
     for (int i = 0; i < image.Pixels.Length; i++)
     {
         canvasNodes[i] = new AnalyzerCanvasNode(image.Pixels[i] == -16777216);
     }
     return new AnalyzerCanvas(image.NumRows, image.NumColumns, canvasNodes);
 }