I am sure this must be very easy to achieve, however, I am somehow too stupid to do the following:
Using java Syntax Highlighting
- Bitmap photoBitmap = BitmapFactory.decode("/res/drawable/photo.jpg");
- Canvas canvas = new Canvas(someBitmap);
- Paint paint = new Paint();
- canvas.drawBitmap(photoBitmap, 0, 0, paint);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
The idea is to draw an image file that is stored in the ressources to a canvas. Unfortunatelly, I keep on getting null pointer errors ...
I'd really appreciate if anyone could get me out here ...
Best,
misterbo


