Methods Summary |
---|
public int | getColorAdd()Returns the RGB color that will be added to the source color
when the color filter is applied.
return mAdd;
|
public int | getColorMultiply()Returns the RGB color used to multiply the source color when the
color filter is applied.
return mMul;
|
private static native long | native_CreateLightingFilter(int mul, int add)
|
public void | setColorAdd(int add)Specifies the RGB that will be added to the source color when
the color filter is applied.
The alpha channel of this color is ignored.
mAdd = add;
update();
|
public void | setColorMultiply(int mul)Specifies the RGB color used to multiply the source color when the
color filter is applied.
The alpha channel of this color is ignored.
mMul = mul;
update();
|
private void | update()
destroyFilter(native_instance);
native_instance = native_CreateLightingFilter(mMul, mAdd);
|