• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 1660

Show
Ignore:
Timestamp:
06/20/07 11:48:40 (18 months ago)
Author:
callan
Message:

Merging fixes for #739 into the milestone:3.0-Beta2 branch (r1658:1659)

Files:
1 modified

  • branches/3.0-Beta2/components/rendering/src/omeis/providers/re/RenderHSBRegionTask.java (modified) (2 diffs)

Legend:

Unmodified
Added
Removed
  • branches/3.0-Beta2/components/rendering/src/omeis/providers/re/RenderHSBRegionTask.java

    r1574 r1660  
    192192    private void renderPackedInt() throws QuantizationException { 
    193193        int discreteValue, pix; 
    194         int redRatio, greenRatio, blueRatio; 
     194        double redRatio, greenRatio, blueRatio; 
    195195        int rValue, gValue, bValue; 
    196196        int newRValue, newGValue, newBValue; 
    … …  
    205205            Color color = colors.get(i); 
    206206            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; 
    210210 
    211211            // Get our color offset if we've got the primary color optimization 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/