equal
deleted
inserted
replaced
4014 colorMapModeKey := 'depth'. |
4014 colorMapModeKey := 'depth'. |
4015 ]. |
4015 ]. |
4016 colorMapModeKey := colorMapModeKey , image depth printString. |
4016 colorMapModeKey := colorMapModeKey , image depth printString. |
4017 self colorMapMode setValue:colorMapModeKey. |
4017 self colorMapMode setValue:colorMapModeKey. |
4018 |
4018 |
|
4019 image photometric == #palette ifTrue:[ |
|
4020 image colorMap isNil ifTrue:[ |
|
4021 image depth > 16 ifTrue:[ |
|
4022 image photometric:#rgb |
|
4023 ]. |
|
4024 ]. |
|
4025 ]. |
4019 |
4026 |
4020 image depth > 12 ifTrue:[ |
4027 image depth > 12 ifTrue:[ |
4021 newListOfColors := OrderedCollection new. |
4028 newListOfColors := OrderedCollection new. |
4022 (image depth > 16 or:[image colorMap isEmptyOrNil]) ifTrue:[ |
4029 (image depth > 16 or:[image colorMap isEmptyOrNil]) ifTrue:[ |
4023 someOrAllUsedColors := image usedColorsMax:10000. |
4030 someOrAllUsedColors := image usedColorsMax:10000. |
4062 ]. |
4069 ]. |
4063 self listOfColors asOrderedCollection ~= newListOfColors ifTrue:[ |
4070 self listOfColors asOrderedCollection ~= newListOfColors ifTrue:[ |
4064 self listOfColors contents:newListOfColors. |
4071 self listOfColors contents:newListOfColors. |
4065 ]. |
4072 ]. |
4066 |
4073 |
4067 "Modified: / 18-01-2012 / 13:58:38 / cg" |
4074 "Modified: / 06-12-2016 / 12:51:36 / cg" |
4068 ! |
4075 ! |
4069 |
4076 |
4070 selectedColorsChanged |
4077 selectedColorsChanged |
4071 |colorIndices| |
4078 |colorIndices| |
4072 |
4079 |