I'm trying to create a small app for Android that takes a picture using the device's camera and put's a PNG frame on top of it. This way the final saved picture will have a beach on top of it, or hats, or anything. Does anyone have any sample programs with this behavior?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Have a look at the SDK documentation on using the image capture intent here.
I start my image capture intent like this:
CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE is a private member in my activity:
Then get the byte array back from the camera by using the following onActivityResult handler:
After that you can do all the processing you want on the image.