IAutomationCompareWorkerCompareLayers(IPCBIWindow, ILayer, IPCBIWindow, ILayer, IPCBIWindow, Boolean, RectangleF, Boolean, ListIAutomationResultDifferencesCompareClass, Boolean) Method

Compare to layers graphically, internal it will be create two images of the layers and compare on 5 µm.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public bool CompareLayers(
	IPCBIWindow OutputWindow,
	ILayer layer1,
	IPCBIWindow Parent1,
	ILayer layer2,
	IPCBIWindow Parent2,
	bool CreateLayerIfSame,
	RectangleF screenRect,
	bool Precisioned,
	out List<IAutomationResultDifferencesCompareClass> ResultList,
	bool connectResultAreas
)

Parameters

OutputWindow  IPCBIWindow
The job window, for the output.
layer1  ILayer
The layer from the first job.
Parent1  IPCBIWindow
The parent window from the first job.
layer2  ILayer
The layer from the second job.
Parent2  IPCBIWindow
The parent window from the second job.
CreateLayerIfSame  Boolean
screenRect  RectangleF
The relevant area.
Precisioned  Boolean
It will be more accurate and slower if true.
ResultList  ListIAutomationResultDifferencesCompareClass
All results in one list.
connectResultAreas  Boolean
Add connected errorareas to one bigger area.

Return Value

Boolean
true if the layers have the same visual nature.

See Also