danielbrthwt Posted January 3, 2012 Posted January 3, 2012 (edited) I am trying to write an android app i dont have much experence but i want to beable to crop a photo and then detect colous as sertian locations in the photo Edited January 3, 2012 by danielbrthwt Quote
digip Posted January 3, 2012 Posted January 3, 2012 (edited) Im not much of a programmer and never worked on Android apps, but my guess is, you need to 1, get the current X and Y of the cursor(I know its touch screen, but its still going to be an x and y hit when its touched somewhere) and then get the pixel color in hex value. Maybe searching for how to capture the X and Y position will lead to results for how to then get the pixel color. These might help you - http://developer.android.com/guide/topics/resources/drawable-resource.html http://developer.android.com/reference/android/view/MotionEvent.html Just had another thought, might be easier, is have the app load it in a html frame, and use javascript to get the mouse position and the color of the pixels under it. I think there are javascript color wheel examples that can use images as input for the color selection. Javascript color wheels - http://jscolor.com/try.php Edited January 3, 2012 by digip Quote
danielbrthwt Posted January 4, 2012 Author Posted January 4, 2012 Thanks alot i havent worked on android apps before ether so this has been a huge help Quote
digip Posted January 4, 2012 Posted January 4, 2012 here is one I found using html5 canvas and some javascript for a color picker from an image - http://www.script-tutorials.com/demos/158/index.html Quote
danielbrthwt Posted January 6, 2012 Author Posted January 6, 2012 here is one I found using html5 canvas and some javascript for a color picker from an image - http://www.script-tu.../158/index.html Thank im terrable at researching i never know what to search haha you have been a great help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.