开发者

Convert an android acreen as Jpeg image

开发者 https://www.devze.com 2023-02-02 07:02 出处:网络
Hi everyone I am creating a greeting card application wherein the user can choose from a set of backgrounds and add text to it.开发者_运维百科Now my question is how can I convert this screen as a JPEG

Hi everyone I am creating a greeting card application wherein the user can choose from a set of backgrounds and add text to it.开发者_运维百科Now my question is how can I convert this screen as a JPEG image which can be sent as a mail to someone.That is the entire greeting card (image+text) is a jpeg image for the viewer.

Thanks everyone in advance


This question will help you. In order to capture the screen as an image buffer you will need root privileges - this isn't appropriate for applications in the Market.

If you are using a Canvas to draw the screen, you could get a bitmap out of it and convert it to a jpg file. See this question for details.

0

精彩评论

暂无评论...
验证码 换一张
取 消