Android crop Image -


i using code in this tutorial crop image

intent intent = new intent(intent.action_get_content, null); intent.settype("image/*"); intent.putextra("crop", "true"); intent.putextra("aspectx", aspectx); intent.putextra("aspecty", aspecty); intent.putextra("outputx", outputx); intent.putextra("outputy", outputy); intent.putextra("scale", scale); intent.putextra("return-data", return_data); intent.putextra(mediastore.extra_output, gettempuri()); intent.putextra("outputformat", bitmap.compressformat.jpeg.tostring()); 

but want modify triangle ( used determine area cropped ) aspect ratio x axis longer y axis

the com.android.camera.action.crop part of internal api not guaranteed supported android devices (same action_get_content mime type image/*.

you have implement own crop activity if want supported devices. @ least should implement sort of fallback behavior if device not support intent. please don't forget this!! :)


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -