Package ca.eandb.jmist.framework.color

Examples of ca.eandb.jmist.framework.color.RGB


   * @see ca.eandb.jmist.framework.display.visualizer.ColorVisualizer#apply(ca.eandb.jmist.framework.color.Color)
   */
  @Override
  public RGB visualize(Color color) {
    double value = (color.getValue(channel) - range.minimum()) / range.length();
    return new RGB(value, value, value);
  }
View Full Code Here


          }
        }
      }
    }
    if (rgbPixelType != null) {
      RGB rgb = color.toRGB();
      for (int y = y0; y < y0 + h; y++) {
        for (int x = x0; x < x0 + w; x++) {
          image.setRGB(x, y, rgb);
        }
      }
View Full Code Here

        float value = (float) pixel.getValue(i);
        image.setFloat(x, y, name, value);
      }
    }
    if (rgbPixelType != null) {
      RGB rgb = pixel.toRGB();
      image.setRGB(x, y, rgb);
    }
  }
View Full Code Here

      }
    }
    if (rgbPixelType != null) {
      for (int y = 0; y < h; y++) {
        for (int x = 0; x < w; x++) {
          RGB rgb = pixels.getPixel(x, y).toRGB();
          image.setRGB(x0 + x, y0 + y, rgb);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.color.RGB

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.