public void ConvertTo(ref CoreDll.adCompareOptions compareOptions) { compareOptions.checkOnEquality = checkOnEquality ? CoreDll.TRUE : CoreDll.FALSE; compareOptions.transformedImage = transformedImage ? CoreDll.TRUE : CoreDll.FALSE; compareOptions.sizeControl = sizeControl ? CoreDll.TRUE : CoreDll.FALSE; compareOptions.typeControl = typeControl ? CoreDll.TRUE : CoreDll.FALSE; compareOptions.ratioControl = ratioControl ? CoreDll.TRUE : CoreDll.FALSE; compareOptions.algorithmComparing = algorithmComparing; compareOptions.thresholdDifference = thresholdDifference; compareOptions.minimalImageSize = minimalImageSize; compareOptions.maximalImageSize = maximalImageSize; compareOptions.compareInsideOneFolder = compareInsideOneFolder ? CoreDll.TRUE : CoreDll.FALSE; compareOptions.compareInsideOneSearchPath = compareInsideOneSearchPath ? CoreDll.TRUE : CoreDll.FALSE; }
public CoreCompareOptions(ref CoreDll.adCompareOptions compareOptions) { checkOnEquality = compareOptions.checkOnEquality != CoreDll.FALSE; transformedImage = compareOptions.transformedImage != CoreDll.FALSE; sizeControl = compareOptions.sizeControl != CoreDll.FALSE; typeControl = compareOptions.typeControl != CoreDll.FALSE; ratioControl = compareOptions.ratioControl != CoreDll.FALSE; algorithmComparing = compareOptions.algorithmComparing; thresholdDifference = compareOptions.thresholdDifference; minimalImageSize = compareOptions.minimalImageSize; maximalImageSize = compareOptions.maximalImageSize; compareInsideOneFolder = compareOptions.compareInsideOneFolder != CoreDll.FALSE; compareInsideOneSearchPath = compareOptions.compareInsideOneSearchPath != CoreDll.FALSE; }