Use CROP for Captured Image?!

All your problems with Audio, Video and Images.

Use CROP for Captured Image?!

Postby hadiosbourne » Sun Nov 29, 2009 10:02 am

Hi guys,
Does any one has any idea how can i use the CROP activity for croping the image taken by the camera?

Thanks
hadiosbourne
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 06, 2009 10:58 am

Top

Postby vik » Wed Mar 24, 2010 11:56 am

Intent intent = new Intent("com.android.camera.action.CROP");
intent.setData(data.getData());
intent.putExtra("outputX", 96);
intent.putExtra("outputY", 96);
intent.putExtra("aspectX", 1);
intent.putExtra("aspectY", 1);
intent.putExtra("scale", true);
intent.putExtra("return-data", true);

startActivityForResult(intent, CROP_FROM_CAMERA);

it ll work on 1.5 and 1.6
User avatar
vik
Senior Developer
Senior Developer
 
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 9 guests