Constructor | 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 | 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 alpha portionaRedPortion
- the red portionaGreenPortion
- the green portionaBluePortion
- the blue portionpublic RgbPixelImpl(int aRgbValue)
aRgbValue
- the rgb valuepublic int getAlphaPortion()
getAlphaPortion
in interface RgbPixel
public int getRedPortion()
getRedPortion
in interface RgbPixel
public int getGreenPortion()
getGreenPortion
in interface RgbPixel
public int getBluePortion()
getBluePortion
in interface RgbPixel
public int toRgbValue()
toRgbValue
in interface RgbPixel
public void setRgbValue(int aRgbValue)
setRgbValue
in interface RgbPixel
aRgbValue
- the new rgb valuepublic void setAlphaPortion(int aAlphaPortion)
setAlphaPortion
in interface RgbPixel
aAlphaPortion
- the new alpha portionpublic void setRedPortion(int aRedPortion)
setRedPortion
in interface RgbPixel
aRedPortion
- the new red portionpublic void setGreenPortion(int aGreenPortion)
setGreenPortion
in interface RgbPixel
aGreenPortion
- the new green portionpublic void setBluePortion(int aBluePortion)
setBluePortion
in interface RgbPixel
aBluePortion
- the new blue portionCopyright © 2018. All rights reserved.