You basically do this:

Paint paint = new Paint();
paint.setFilterBitmap(true);
paint.setDither(true);
paint.setAntiAlias(true);

Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
canvas.drawBitmap(Bitmap.createScaledBitmap(bitmapYoudLikeToSeeOnTheCanvas, 
width, height, false), 0, 0, paint);
canvas.doSomeOtherThings…

and then you might save it to a file:

FileOutputStream fos = context.openFileOutput(filename+".jpg", 
Context.MODE_WORLD_READABLE);
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);
fos.flush();
fos.close();

or set it as drawable:

imageView.setImageDrawable(new BitmapDrawable(bitmap));


Cheers

Jochen

Am Dienstag, 18. September 2012 06:22:49 UTC+2 schrieb Chance Sanders:
>
> Care to share the code?
>
> I'm sitting here dying trying to figure out how to take my 'painting' and 
> get it from this screen to a PHP on site to upload it.... DYING. 
>
>

-- 
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