thx...

hmmm strange, just because it was working fine
can u just see an significant error of mine in the following
function??

still researching :)




public static Bitmap CNewBitmap(Resources resources, int color) {

                Log.d("test", "updatewidget CNewBitmap 1");

                ob = BitmapFactory.decodeResource(resources,
R.drawable.mydaysminipic_td);

                Log.d("test", "updatewidget CNewBitmap 2");
                obm = Bitmap.createBitmap(ob.getWidth(), ob.getHeight(), 
ob.getConfig
());
                // -->>>> above makes the problem.. because here it
stops!

                Log.d("test", "updatewidget CNewBitmap 3");
                // ob.recycle();
                Canvas canvas = new Canvas(obm);
                Paint paint = new Paint();
                paint.setColorFilter(new PorterDuffColorFilter(color,
Mode.SRC_ATOP));
                canvas.drawBitmap(ob, 0f, 0f, paint);
                return obm;
        }





thx chris

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

Reply via email to