Interface RgbPixel

  • All Known Implementing Classes:
    RgbPixelImpl


    public interface RgbPixel
    The Interface RgbPixel.
    Author:
    steiner
    • Method Detail

      • getAlphaPortion

        int getAlphaPortion​()
        Gets the alpha portion.
        Returns:
        the alpha portion
      • getRedPortion

        int getRedPortion​()
        Gets the red portion.
        Returns:
        the red portion
      • getGreenPortion

        int getGreenPortion​()
        Gets the green portion.
        Returns:
        the green portion
      • getBluePortion

        int getBluePortion​()
        Gets the blue portion.
        Returns:
        the blue portion
      • toRgbValue

        int toRgbValue​()
        To rgb value.
        Returns:
        the int
      • setAlphaPortion

        void setAlphaPortion​(int aAlphaPortion)
        Sets the alpha portion.
        Parameters:
        aAlphaPortion - the new alpha portion
      • setRedPortion

        void setRedPortion​(int aRedPortion)
        Sets the red portion.
        Parameters:
        aRedPortion - the new red portion
      • setGreenPortion

        void setGreenPortion​(int aGreenPortion)
        Sets the green portion.
        Parameters:
        aGreenPortion - the new green portion
      • setBluePortion

        void setBluePortion​(int aBluePortion)
        Sets the blue portion.
        Parameters:
        aBluePortion - the new blue portion
      • setRgbValue

        void setRgbValue​(int aRgbValue)
        Sets the rgb value.
        Parameters:
        aRgbValue - the new rgb value
      • withAlphaPortion

        default RgbPixel withAlphaPortion​(int aAlphaPortion)
        With alpha portion.
        Parameters:
        aAlphaPortion - the alpha portion
        Returns:
        the rgb pixel
      • withRedPortion

        default RgbPixel withRedPortion​(int aRedPortion)
        With red portion.
        Parameters:
        aRedPortion - the red portion
        Returns:
        the rgb pixel
      • withGreenPortion

        default RgbPixel withGreenPortion​(int aGreenPortion)
        With green portion.
        Parameters:
        aGreenPortion - the green portion
        Returns:
        the rgb pixel
      • withBluePortion

        default RgbPixel withBluePortion​(int aBluePortion)
        With blue portion.
        Parameters:
        aBluePortion - the blue portion
        Returns:
        the rgb pixel
      • withRgbValue

        default RgbPixel withRgbValue​(int aRgbValue)
        With rgb value.
        Parameters:
        aRgbValue - the rgb value
        Returns:
        the rgb pixel