#FEATURE by cg expecco_2_10_0 expecco_2_10_0_41
authorClaus Gittinger <cg@exept.de>
Tue, 06 Dec 2016 12:52:05 +0100
changeset 3359258a64461215
parent 3358 4e4d637296ba
child 3360 b7f7e48455dd
#FEATURE by cg
class: ImageEditor
changed: #findColorMapMode
colormapmode when converting
ImageEditor.st
     1.1 --- a/ImageEditor.st	Fri Dec 02 16:57:32 2016 +0100
     1.2 +++ b/ImageEditor.st	Tue Dec 06 12:52:05 2016 +0100
     1.3 @@ -4016,6 +4016,13 @@
     1.4      colorMapModeKey := colorMapModeKey , image depth printString.
     1.5      self colorMapMode setValue:colorMapModeKey.
     1.6  
     1.7 +    image photometric == #palette ifTrue:[
     1.8 +        image colorMap isNil ifTrue:[
     1.9 +            image depth > 16 ifTrue:[
    1.10 +                image photometric:#rgb
    1.11 +            ].
    1.12 +        ].
    1.13 +    ].
    1.14  
    1.15      image depth > 12 ifTrue:[
    1.16          newListOfColors := OrderedCollection new.
    1.17 @@ -4064,7 +4071,7 @@
    1.18          self listOfColors contents:newListOfColors.
    1.19      ].
    1.20  
    1.21 -    "Modified: / 18-01-2012 / 13:58:38 / cg"
    1.22 +    "Modified: / 06-12-2016 / 12:51:36 / cg"
    1.23  !
    1.24  
    1.25  selectedColorsChanged