Constructor and Description |
---|
RgbPixelImpl()
Instantiates a new rgb pixel impl.
|
RgbPixelImpl(int aRgbValue)
Instantiates a new rgb pixel impl.
|
RgbPixelImpl(int aAlphaPortion,
int aRedPortion,
int aGreenPortion,
int aBluePortion)
Instantiates a new rgb pixel impl.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlphaPortion()
Gets the alpha portion.
|
int |
getBluePortion()
Gets the blue portion.
|
int |
getGreenPortion()
Gets the green portion.
|
int |
getRedPortion()
Gets the red portion.
|
void |
setAlphaPortion(int aAlphaPortion)
Sets the alpha portion.
|
void |
setBluePortion(int aBluePortion)
Sets the blue portion.
|
void |
setGreenPortion(int aGreenPortion)
Sets the green portion.
|
void |
setRedPortion(int aRedPortion)
Sets the red portion.
|
void |
setRgbValue(int aRgbValue)
Sets the rgb value.
|
int |
toRgbValue()
To rgb value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withAlphaPortion, withBluePortion, withGreenPortion, withRedPortion, withRgbValue
public RgbPixelImpl()
public RgbPixelImpl(int aAlphaPortion, int aRedPortion, int aGreenPortion, int aBluePortion)
aAlphaPortion
- the a alpha portionaRedPortion
- the a red portionaGreenPortion
- the a green portionaBluePortion
- the a blue portionpublic RgbPixelImpl(int aRgbValue)
aRgbValue
- the a rgb valuepublic int getAlphaPortion()
RgbPixel
getAlphaPortion
in interface RgbPixel
public int getRedPortion()
RgbPixel
getRedPortion
in interface RgbPixel
public int getGreenPortion()
RgbPixel
getGreenPortion
in interface RgbPixel
public int getBluePortion()
RgbPixel
getBluePortion
in interface RgbPixel
public int toRgbValue()
RgbPixel
toRgbValue
in interface RgbPixel
public void setRgbValue(int aRgbValue)
RgbPixel
setRgbValue
in interface RgbPixel
aRgbValue
- the new rgb valuepublic void setAlphaPortion(int aAlphaPortion)
RgbPixel
setAlphaPortion
in interface RgbPixel
aAlphaPortion
- the new alpha portionpublic void setRedPortion(int aRedPortion)
RgbPixel
setRedPortion
in interface RgbPixel
aRedPortion
- the new red portionpublic void setGreenPortion(int aGreenPortion)
RgbPixel
setGreenPortion
in interface RgbPixel
aGreenPortion
- the new green portionpublic void setBluePortion(int aBluePortion)
RgbPixel
setBluePortion
in interface RgbPixel
aBluePortion
- the new blue portionCopyright © 2017. All rights reserved.