Changeset 1660 for branches/3.0-Beta2/components/rendering
- Timestamp:
- 06/20/07 11:48:40 (17 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0-Beta2/components/rendering/src/omeis/providers/re/RenderHSBRegionTask.java
r1574 r1660 192 192 private void renderPackedInt() throws QuantizationException { 193 193 int discreteValue, pix; 194 intredRatio, greenRatio, blueRatio;194 double redRatio, greenRatio, blueRatio; 195 195 int rValue, gValue, bValue; 196 196 int newRValue, newGValue, newBValue; … … 205 205 Color color = colors.get(i); 206 206 QuantumStrategy qs = strategies.get(i); 207 redRatio = color.getRed() > 0? color.getRed() / 255 :0;208 greenRatio = color.getGreen() > 0? color.getGreen() / 255 :0;209 blueRatio = color.getBlue() > 0? color.getBlue() / 255 :0;207 redRatio = color.getRed() > 0? color.getRed() / 255.0 : 0.0; 208 greenRatio = color.getGreen() > 0? color.getGreen() / 255.0 : 0.0; 209 blueRatio = color.getBlue() > 0? color.getBlue() / 255.0 : 0.0; 210 210 211 211 // Get our color offset if we've got the primary color optimization
