我们如何显示来自 Picasa java API 的照片?
好吧,这似乎是一个愚蠢的问题,因为我们有 this
但是,到目前为止,我只能通过使用以下方法成功显示缩略图:
PhotoEntry photo = //somehow I get the instance
photo.getMediaThumbnails().get(0).getUrl()
通过此方法我可以显示的最大照片最多为 300 像素左右[即 photo.getMediaThumbnails( ).get(3)
]。如何显示最大 400 像素甚至 800 像素的缩略图?或者我怎样才能参考实际上可以帮助我显示这张照片的 google picasa 页面?
谢谢
Okay, it seems to be a stupid question, since we have this
However, up to the moment, I can only succeed in displaying the thumbnails by using:
PhotoEntry photo = //somehow I get the instance
photo.getMediaThumbnails().get(0).getUrl()
The biggest photo I can display through this method is up to 300 pixel or so[which is photo.getMediaThumbnails().get(3)
]. How can I display the a thumbnail up to 400 pixel or even 800 pixel? Or How can I even refer back to the google picasa page that can actually help me display this photo?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
很简单
你可以用这种方法来获得 400/800px 的照片。
您只需更改给定的结果 URL。
更改 URL 的 s144/s400/s800 值
Quite Simple
You can use this way to get that 400/800px photo.
You only have to change the result URL that is given.
Change the s144/s400/s800 value of the URL
以下是 google picasa api 社区成员的回答:
The following was answered by a community member of google picasa api:
如果您使用 Picasa Java API 并需要在上传后获取图像 URL,请尝试使用以下代码
If you are using Picasa Java API and need to get image URL after uploading try to use following code