equal
deleted
inserted
replaced
8118 userInput isEmptyOrNil ifTrue:[^ self]. |
8118 userInput isEmptyOrNil ifTrue:[^ self]. |
8119 thresholdBrighness := Number readFrom:userInput onError:nil. |
8119 thresholdBrighness := Number readFrom:userInput onError:nil. |
8120 thresholdBrighness isNil ifTrue:[^ self]. |
8120 thresholdBrighness isNil ifTrue:[^ self]. |
8121 |
8121 |
8122 thresholdBrighness := thresholdBrighness clampBetween:0 and:1. |
8122 thresholdBrighness := thresholdBrighness clampBetween:0 and:1. |
|
8123 |
8123 imageEditView newImageWithUndo:(image asThresholdMonochromeImage:thresholdBrighness) |
8124 imageEditView newImageWithUndo:(image asThresholdMonochromeImage:thresholdBrighness) |
8124 |
8125 |
8125 "Created: / 24-08-2017 / 15:26:44 / cg" |
8126 "Created: / 24-08-2017 / 15:26:44 / cg" |
8126 "Modified: / 24-08-2017 / 17:54:21 / cg" |
8127 "Modified: / 24-08-2017 / 17:54:21 / cg" |
|
8128 "Modified (format): / 01-09-2017 / 10:28:24 / cg" |
8127 ! |
8129 ! |
8128 |
8130 |
8129 makeNegative |
8131 makeNegative |
8130 "negates current image by negating the color map" |
8132 "negates current image by negating the color map" |
8131 |
8133 |