Eventually I would like to try to port a code I found here:
http://bodytag.org/tp02/
I am very new to this though, and I can't even load my image to
display. What I have so far is below, but it doesn't show anything
when I run it. What am I doing wrong?
Also once I have this loaded will this image be able to be manipulated
the way I want to?
Any help would be appreciated.
public class Ripple extends Activity {
LinearLayout mLinearLayout;
// View mView;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
loadImage();
}
public void loadImage () {
Paint mPaint;
Canvas mCanvas;
mPaint = new Paint();
mCanvas = new Canvas();
Bitmap baseImage = BitmapFactory.decodeResource(getResources(),
R.drawable.my_image);
mCanvas.drawBitmap(baseImage, 0, 0, null);
Log.i("draw","Drew");
}
}
--
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