IAutomationCompareLayers Method (IPCBIWindow, ILayer, IPCBIWindow, ILayer, IPCBIWindow, Boolean, RectangleF, Boolean, Boolean)PCB-Investigator Interface Documentation
Compare to layers grahicly, internal it will be create two images of the layers and compare on 5 µm.

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 9.0.0.0
Syntax

public static bool CompareLayers(
	IPCBIWindow OutputWindow,
	ILayer layer1,
	IPCBIWindow Parent1,
	ILayer layer2,
	IPCBIWindow Parent2,
	bool CreateComparResultLayer,
	RectangleF screenRect,
	bool checkPrecision,
	bool OnlyInProfile
)

Parameters

OutputWindow
Type: PCBI.AutomationIPCBIWindow
The job window, for the output.
layer1
Type: PCBI.AutomationILayer
The layer from the first job.
Parent1
Type: PCBI.AutomationIPCBIWindow
The parent window from the first job.
layer2
Type: PCBI.AutomationILayer
The layer from the second job.
Parent2
Type: PCBI.AutomationIPCBIWindow
The parent window from the second job.
CreateComparResultLayer
Type: SystemBoolean
Create an layer with small rectangle areas to mark the different regions.
screenRect
Type: System.DrawingRectangleF
The relevant area.
checkPrecision
Type: SystemBoolean
It will be more accurate if true.
OnlyInProfile
Type: SystemBoolean
Only elements in Profile area are checked.

Return Value

Type: Boolean
true if the layers have the same visual nature.
See Also

Reference