C# 클래스 QualityBot.Compare.Comparer

파일 보기 프로젝트 열기: Ancestry/quality-bot 1 사용 예제들

공개 메소드들

메소드 설명
Compare ( Scrape pageA, Scrape pageB ) : Comparison

Compares the specified pages and returns an object detailing the differences.

Comparer ( ) : System

비공개 메소드들

메소드 설명
AssembleScrapeHybrid ( Scrape page, bool isBaseline ) : ScrapeHybrid
ComputeDiff ( Scrape pageA, Scrape pageB ) : Comparison

Compares the specified pages and returns an object detailing the differences.

CorrespondingElements ( Scrape pageA, Scrape pageB, decimal maxDistance ) : void

Attempts to determine which element on page A corresponds to which element on page B.

DrawRectanglesOnImage ( IEnumerable rectangles, Image image, Color color ) : Image
GetChanges ( IEnumerable matches, Image pageScreenshotA, Image pageScreenshotB, Scrape pageA, Scrape pageB ) : IEnumerable
GetCssChanges ( string>.Dictionary css1, string>.Dictionary css2, decimal &percentageChange ) : CssChange

Determines the difference between two CSS dictionaries.

GetElementData ( Image pageScreenshot, ScrapedElement scrapedElement, Scrape page ) : ElementAddRemoveResult

Returns information about the given element.

GetHtmlDiffReport ( string html1, string html2 ) : string
GetLocationChanges ( Rectangle r1, Rectangle r2, decimal &percentageChange ) : string

Returns the difference between two rectangles as a string description.

GetPixelChanges ( Image psA, Image psB, ScrapedElement eA, ScrapedElement eB, Scrape pA, Scrape pB, decimal &percentageChange ) : PixelChange

Calculates the pixel difference between two elements.

GetStringChanges ( string string1, string string2, decimal &percentageChange ) : string

Pretty prints as html the difference between two strings.

HasChanges ( ScrapedElement element, Image pageScreenshotA, Image pageScreenshotB, Scrape pageA, Scrape pageB, ElementChangeResult &changes ) : bool
Hypotenuse ( int sideA, int sideB ) : double

Calculates the area of the rectangle.

OutlineImage ( IEnumerable rectangles, Image image, Color color ) : string
OutlinedImagesAsBase64 ( Image pageScreenshotA, Image pageScreenshotB, IEnumerable addedElements, IEnumerable deletedElements, IEnumerable changedItems ) : IEnumerable
PixelDiff ( Image pageScreenshotA, Image pageScreenshotB ) : PixelResult
TotalChangePercentage ( decimal total ) : decimal

메소드 상세

Compare() 공개 메소드

Compares the specified pages and returns an object detailing the differences.
public Compare ( Scrape pageA, Scrape pageB ) : Comparison
pageA QualityBot.ScrapePocos.Scrape The first page.
pageB QualityBot.ScrapePocos.Scrape The second page.
리턴 QualityBot.ComparePocos.Comparison

Comparer() 공개 메소드

public Comparer ( ) : System
리턴 System