Documentation of 'jvx.material.PwAdjustColors' Java class
PwAdjustColors ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.material

Class PwAdjustColors

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf


    public class PwAdjustColors
    extends PjWorkshop
    Modify surface color, brightness and contrast in various color modes.
    See Also:
    Serialized Form
    Author:
    Ulrich Reitebuch
    Version:
    09.11.09, 1.10 revised (ur) brightness in hsb mode is now controlled by brightness and contrast.
    05.03.08, 1.00 created (ur)
    • Field Detail

      • RGB

        public static final int RGB
        Identifier for Red-Green-Blue color representation.
        See Also:
        Constant Field Values
      • HSB

        public static final int HSB
        Identifier for Hue-Saturation-Brightness color representation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PwAdjustColors

        public PwAdjustColors()
        Constructor.
    • Method Detail

      • init

        public void init()
        Initialization.
        Overrides:
        init in class PjWorkshop
      • close

        public void close()
        Close Workshop.
        Overrides:
        close in class PjWorkshop
      • getMode

        public int getMode()
        Set color modifying mode (RGB or HSB).
        Overrides:
        getMode in class PjWorkshop
        Returns:
        either MODE_STANDARD for standard mode, or another mode.
        See Also:
        PjWorkshopIf.MODE_STANDARD
      • modifyHSB

        public static java.awt.Color[] modifyHSB(java.awt.Color[] col,
                                                 double hueSummand,
                                                 double saturationFactor,
                                                 double brightnessSummand,
                                                 double contrastFactor)
        Modify hue, saturation and brightness values in a color array by translation of the hue value and scaling brightness and saturation values.
        Parameters:
        col - Input color array
        hueSummand - Translation for hue value
        saturationFactor - Scaling factor for saturation
        brightnessSummand - Translation for brightness
        contrastFactor - Scaling Factor for brightness
        Returns:
        Array of modified colors
      • modifyRGB

        public static java.awt.Color[] modifyRGB(java.awt.Color[] col,
                                                 double redFactor,
                                                 double greenFactor,
                                                 double blueFactor)
        Scale color red, green and blue values by given factors.
        Parameters:
        col - Input color array
        redFactor - Scaling factor for red channel
        greenFactor - Scaling factor for green channel
        blueFactor - Scaling factor for blue channel
        Returns:
        Array of modified colors
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

You see the box below because you did not login.