equal
deleted
inserted
replaced
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. |