Code example for Bitmap

Methods: eraseColorgetHeightgetWidth

0
//            Log.d( TAG, "Same as the previous one" ); 
            canvas.drawBitmap( mRenderBuffer, 0, 0, null );
         } 
         else 
         { 
            if( mRenderBuffer == null || mRenderBuffer.getWidth() != canvas.getWidth() || mRenderBuffer.getHeight() != canvas.getHeight() )
            { 
//               Log.d( TAG, "Fresh buffers" ); 
               mRenderBuffer = Bitmap.createBitmap( canvas.getWidth(), canvas.getHeight(), Config.ARGB_8888 );
               mRenderCanvas = new Canvas( mRenderBuffer );
            } 
            else 
            { 
               mRenderBuffer.eraseColor( Color.TRANSPARENT );
            } 
            this.mScreenPoint = new Point();
            this.mPrevScreenPoint = new Point();
            switch (mTrackColoringMethod)
            { 
               case ( DRAW_CALCULATED ):