/**
* Fill the entire canvas' bitmap (restricted to the current clip) with the
* specified color, using srcover porterduff mode.
*
* @param color the color to draw onto the canvas
*/
public void drawColor(int color) {
native_drawColor(mNativeCanvas, color);
}
/**
* Fill the entire canvas' bitmap (restricted to the current clip) with the
* specified color and porter-duff xfermode.
*
* @param color the color to draw with
* @param mode the porter-duff mode to apply to the color
*/
public void drawColor(int color, PorterDuff.Mode mode) {
native_drawColor(mNativeCanvas, color, mode.nativeInt);
}
/**
* Set or clear the xfermode object.
* <p />
* Pass null to clear any previous xfermode.
* As a convenience, the parameter passed is also returned.
*
* @param xfermode May be null. The xfermode to be installed in the paint
* @return xfermode
*/
public Xfermode setXfermode(Xfermode xfermode) {
int xfermodeNative = 0;
if (xfermode != null)
xfermodeNative = xfermode.native_instance;
native_setXfermode(mNativePaint, xfermodeNative);
mXfermode = xfermode;
return xfermode;
}