Settings:setComparisonDensity()
Set the screen density (dpi) used when comparing templates.
Signature
Settings:setComparisonDensity(density: number): void
Parameters
| Parameter | Type | Description |
|---|---|---|
| density | number | Density in dpi; 0 clears the value |
Returns
void
Description
Usually set from the macro's saved metadata, not by hand. Pair it with the comparison width and height so a macro recorded on one device matches correctly on another.
Compatible Version: 1.0.0.37 and up