简体   繁体   English

从剪贴板复制图像

[英]Copying an image from the clipboard

I want to get an image which is copied from the galley to my app.Means the image will be there in the clipboard I want to get that image can anyone help me. 我想获得一张从厨房复制到我的应用程序的图像。意味着该图像将存在于剪贴板中,我想获得该图像,任何人都可以帮助我。

I need to copy the image from the clipboard and I don't want it directly from the gallery. 我需要从剪贴板复制图像,但我不想直接从图库中复制图像。

I think this is as close as you're going to come to getting Gallery images into your app... 我认为这与您将Gallery图片放入应用程序一样近...

http://eggie5.com/8-hook-share-picture-via-menu-android http://eggie5.com/8-hook-share-picture-via-menu-android

The article follows through all the way to an HTTP send of the image, but obviously you can just collect it as a byte[], and then do whatever you want with it after that. 本文从头到尾都是通过HTTP发送图像,但是显然您可以将其作为byte []进行收集,然后再对它进行任何处理。

It's not a copy/paste, but that's just not a mechanism that Android offers in this context, so, I'd do what I could with this solution. 它不是复制/粘贴,但这不是Android在这种情况下提供的一种机制,因此,我将尽我所能使用此解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM