-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need method for saving image in random directory #31
Comments
I do not want to add too many different functions. But I added one function that you can use to do what you want: GPUImageView.capture() will return a Bitmap. Here some code how to achieve your goal (written here, not tested). File file = new File("/path/to/your/file");
Bitmap bitmap = mGPUImageView.capture();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(file)); I hope this does what you want. If not, please reopen this issue :). |
This is what I want. Thanks! |
mediavrog
pushed a commit
to mediavrog/android-gpuimage
that referenced
this issue
Aug 1, 2013
…. Resize view for capturing picture of bigger size. Closes cats-oss#19 References cats-oss#31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Somthing like this in GPUImageView class:
public void saveToPictures(final File file, final GPUImage.OnPictureSavedListener listener) {
..
}
where file - any file in device file system.
The text was updated successfully, but these errors were encountered: