# HG changeset patch # User Claus Gittinger # Date 1504101815 -7200 # Node ID f6c63e715a5b7658c03cdbef7a4a2b6e81ccb978 # Parent 95c973cafdc1dbc989d7b4b68508aad20938fe82 #UI_ENHANCEMENT by cg class: ImageEditor changed: #doMagnifyImage diff -r 95c973cafdc1 -r f6c63e715a5b ImageEditor.st --- 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