private int selectInvertColors(invertColorsAvailable chanelInvert, Color color){
        int colorReturn=0;
        switch (chanelInvert){
            case RGB:
                colorReturn=super.colorRGBtoSRGB(new Color(255-color.getRed(), 
                        255-color.getGreen(), 255-color.getBlue(),color.getAlpha()));
                break;
            case red:
                colorReturn=super.colorRGBtoSRGB(new Color(255-color.getRed(), 
                        color.getGreen(),color.getBlue(),color.getAlpha()));
                break;
            case green:
                colorReturn=super.colorRGBtoSRGB(new Color(color.getRed(), 
                        255-color.getGreen(),color.getBlue(),color.getAlpha()));
                break;
            case blue:
                colorReturn=super.colorRGBtoSRGB(new Color(color.getRed(), 
                        color.getGreen(), 255-color.getBlue(),color.getAlpha()));
               break;
        }
        return colorReturn;
    }