Google通讯录API返回低分辨率照片 [英] Google contacts API returns low resolution photos

查看:114
本文介绍了Google通讯录API返回低分辨率照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google的Data API Java库访问联系人,并且在使用getContactPhotoLink()方法时,我只能获取低分辨率(96x96)的照片。反正我可以获得更高分辨率的照片吗?

I'm using Google's Data APIs Java library to access contacts and when using the getContactPhotoLink() method I can only get low resolution (96x96) photos. Is there anyway I can get bigger resolution photos?

在我的Android手机上,显示的照片绝对不是96x96像素...

On my Android phone the photos showing up are definitely not 96x96 pixels...

谢谢

推荐答案

这在很大程度上取决于Android的版本。

It heavily depends on the version of Android.

如果在ICS 4.0下具有任何功能,则最大图像尺寸为96x96。
它在您的手机上看起来可能更大,但这是因为正在缩放图像以适合屏幕。因此,如果您想要更大的图像,只需对其进行缩放即可。

If you have anything under ICS 4.0 then the maximum image size is 96x96. It may look bigger on your phone, but thats because the image is being scaled to fit the screen. So if you want a bigger image just scale it to fit.

ICS 4.0支持的图像最大为256x256

ICS 4.0 supports images of up to 256x256

Jelly Bean 4.1及更高版本目前最多支持720x720

Jelly Bean 4.1 and above currently support up to 720x720

这篇关于Google通讯录API返回低分辨率照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆