| 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, waitwithAlphaPortion, withBluePortion, withGreenPortion, withRedPortion, withRgbValuepublic RgbPixelImpl()
public RgbPixelImpl(int aAlphaPortion,
int aRedPortion,
int aGreenPortion,
int aBluePortion)
aAlphaPortion - the alpha portionaRedPortion - the red portionaGreenPortion - the green portionaBluePortion - the blue portionpublic RgbPixelImpl(int aRgbValue)
aRgbValue - the rgb valuepublic int getAlphaPortion()
getAlphaPortion in interface RgbPixelpublic int getRedPortion()
getRedPortion in interface RgbPixelpublic int getGreenPortion()
getGreenPortion in interface RgbPixelpublic int getBluePortion()
getBluePortion in interface RgbPixelpublic int toRgbValue()
toRgbValue in interface RgbPixelpublic void setRgbValue(int aRgbValue)
setRgbValue in interface RgbPixelaRgbValue - the new rgb valuepublic void setAlphaPortion(int aAlphaPortion)
setAlphaPortion in interface RgbPixelaAlphaPortion - the new alpha portionpublic void setRedPortion(int aRedPortion)
setRedPortion in interface RgbPixelaRedPortion - the new red portionpublic void setGreenPortion(int aGreenPortion)
setGreenPortion in interface RgbPixelaGreenPortion - the new green portionpublic void setBluePortion(int aBluePortion)
setBluePortion in interface RgbPixelaBluePortion - the new blue portionCopyright © 2018. All rights reserved.