Class ColorConverter


  • public class ColorConverter
    extends Object

    Converts an ImageJ int color representation to a RGBColor object

    Since:
    1.1
    Author:
    Christoph Praschl
    • Constructor Detail

      • ColorConverter

        public ColorConverter()
    • Method Detail

      • convert

        public RGBColor convert​(int color)
        Converts a color represented as integer to a RGBColor object
        Parameters:
        color - to be converted
        Returns:
        RGBColor representation of the color
      • convert

        public int convert​(Color color)
        Converts a RGBColor object to a ImageJ integer color representation
        Parameters:
        color - to be converted
        Returns:
        int representation of the color