--- a/ImageEditor.st Wed Aug 30 15:42:00 2017 +0200
+++ b/ImageEditor.st Wed Aug 30 16:03:35 2017 +0200
@@ -7747,9 +7747,9 @@
box okText:(resources string:'OK').
box abortText:(resources string:'Cancel').
box initialText:image extent printString.
- box addCheckBox:(resources string:'Antialiased') on:antiAliased.
+ box verticalPanel add:(CheckBox label:(resources string:'Antialias/Smooth') model:antiAliased).
box showAtPointer.
-
+
(box accepted
and: [(newSize := self pointFromString:(box contents)) notNil])
ifTrue:[
@@ -7758,13 +7758,19 @@
^ self.
].
antiAliased value ifTrue:[
- imageEditView magnifyAntiAliasedImageTo:newSize.
+ ((newSize x < image width) or:[(newSize y < image height)]) ifTrue:[
+ imageEditView magnifySmoothingTo:newSize.
+ ] ifFalse:[
+ imageEditView magnifyAntiAliasedImageTo:newSize.
+ ].
] ifFalse:[
imageEditView magnifyImageTo:newSize.
].
].
self updateInfoLabel
+
+ "Modified: / 30-08-2017 / 15:46:02 / cg"
!
doMagnifyImageBy