public EdgeSearch(ImageTool theOwnerTool, ColorMatchInstance theColorMatch, Axis edgeAxis, int startEdgePos, int stepSizeAndDirection, int theSearchBoundary, int startLocationOnEdge, int theMinBoundary, int theMaxBoundary, short[,] searchRecord, short searchMarker) { ownerTool = theOwnerTool; colorMatch = theColorMatch; mEdgeAxis = edgeAxis; pos = startEdgePos; mStepSizeAndDirection = stepSizeAndDirection; mSearchBoundary = theSearchBoundary; mMinBoundary = theMinBoundary; mMaxBoundary = theMaxBoundary; minTested = startLocationOnEdge; maxTested = startLocationOnEdge; mSearchRecord = searchRecord; mSearchMarker = searchMarker; if (PixelMatches(startLocationOnEdge, true)) { HandleFind(startLocationOnEdge); } }