I envoke the drawBitmapMesh in "onDraw"

        @Override
        protected void onDraw(Canvas canvas) {
            if(!mSave) {
                Log.e("test",
"ssssssssssssssssssssssssssssssssssssssssssssssssss");
                canvas.save();
                mSave = true;
            }
            mCanvas = canvas;
            canvas.drawColor(0xFFCCCCCC);
            canvas.concat(mMatrix);
            canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,null,
0, null);
            if(mRestore) {
                Log.e("test",
"rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr");
                canvas.restore(); // it can't restore the bitmap.
                mRestore = false;
            }
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to