Back to project page reflector.
The source code is released under:
Copyright (c) 2011 Hannes Romppainen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...
If you think the Android project reflector listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.webs.graub.reflector; //from ww w . ja va2 s . co m import android.graphics.Bitmap; import android.graphics.Color; public class TestBitmap { static int counter = 0; Bitmap bmp; TestBitmap() { ++counter; bmp = Bitmap.createBitmap(300,600,Bitmap.Config.ARGB_8888); for(int i=0; i<counter; ++i) { if (4*i > 600) break; for(int x=10;x<290;++x) { bmp.setPixel(x,4*i,Color.RED); } } } static void reset() { counter = 0; } Bitmap getBitmap() { return bmp; } }