ImageEditor.st
changeset 1123 7979a71001d0
parent 1122 66e895f34b9b
child 1124 2392df0934bc
equal deleted inserted replaced
1122:66e895f34b9b 1123:7979a71001d0
  2106                             mapping:nil.
  2106                             mapping:nil.
  2107                     ] ifFalse:[
  2107                     ] ifFalse:[
  2108                         oldImage depth == 8 ifTrue:[
  2108                         oldImage depth == 8 ifTrue:[
  2109                             tmpBits := oldImage bits
  2109                             tmpBits := oldImage bits
  2110                         ] ifFalse:[
  2110                         ] ifFalse:[
  2111                             self warn:'Too many colors in image.'.
  2111                             self warn:('Too many colors in image ( ', oldImage usedColors size printString , ').').
  2112                             ^ self
  2112                             ^ self
  2113                         ]
  2113                         ]
  2114                     ].
  2114                     ].
  2115                     usageCounts := tmpBits usageCounts.
  2115                     usageCounts := tmpBits usageCounts.
  2116                     tmpMap := Array new:usageCounts size.
  2116                     tmpMap := Array new:usageCounts size.