uptechteam / MotionViews-Android

Code Guide: How to create Snapchat-like image stickers and text stickers.
https://blog.uptech.team/how-to-create-snapchat-like-stickers-for-android-50512957c351
MIT License
479 stars 112 forks source link

Question: possible to capture content ? #1

Closed AndroidDeveloperLB closed 7 years ago

AndroidDeveloperLB commented 7 years ago

Suppose I've added some texts, images, etc... And now I want to save it as a bitmap, and send it, how do I do it?

AndriyBas commented 7 years ago

@AndroidDeveloperLB Check class MotionView.java, method public Bitmap getThumbnailImage(). It returns the bitmap with all current images, text (with the current size of the canvas)

AndroidDeveloperLB commented 7 years ago

Why is it called "getThumbnailImage" ? How do you get to choose the size of this bitmap? Also, BTW, does this library support vectorDrawable?

On Tue, Dec 6, 2016 at 12:56 PM, Andriy Bas notifications@github.com wrote:

Closed #1 https://github.com/uptechteam/MotionViews-Android/issues/1.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/uptechteam/MotionViews-Android/issues/1#event-883460911, or mute the thread https://github.com/notifications/unsubscribe-auth/AFG_1pVw3ANvz-B92USK2B07bzBRXjAkks5rFT9JgaJpZM4LDrVP .

AndriyBas commented 7 years ago

@AndroidDeveloperLB the library does not support vectorDrawable, it works with Bitmaps

AndroidDeveloperLB commented 7 years ago

and how do I choose the bitmap size for it?

AndriyBas commented 7 years ago

@AndroidDeveloperLB any bitmap size works (unless it throws OutOfMemory)