android - Which mode to use to draw on a bitmap -


Hi I am using bitmap and using code to erase arch by bitmap

  mPaint.setXfermode (new portfidfoixform (mod.CLEAR));   

Now what should I do with mPaint to draw it on bitmap?

create different ways like

// to clear the arcs

  Turn on zero EraserOn () {mPaint.setXfermode (New PortfidxFormode (M.CLEAR)); }   

// To draw again

  Turn on zero EraserOff () {mPaint.setXfermode (null); }   

And call them whenever they need.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -