| 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 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()
RgbPixelgetAlphaPortion in interface RgbPixelpublic int getRedPortion()
RgbPixelgetRedPortion in interface RgbPixelpublic int getGreenPortion()
RgbPixelgetGreenPortion in interface RgbPixelpublic int getBluePortion()
RgbPixelgetBluePortion in interface RgbPixelpublic int toRgbValue()
RgbPixeltoRgbValue in interface RgbPixelpublic void setRgbValue(int aRgbValue)
RgbPixelsetRgbValue in interface RgbPixelaRgbValue - the new rgb valuepublic void setAlphaPortion(int aAlphaPortion)
RgbPixelsetAlphaPortion in interface RgbPixelaAlphaPortion - the new alpha portionpublic void setRedPortion(int aRedPortion)
RgbPixelsetRedPortion in interface RgbPixelaRedPortion - the new red portionpublic void setGreenPortion(int aGreenPortion)
RgbPixelsetGreenPortion in interface RgbPixelaGreenPortion - the new green portionpublic void setBluePortion(int aBluePortion)
RgbPixelsetBluePortion in interface RgbPixelaBluePortion - the new blue portionCopyright © 2017. All rights reserved.