Bing Image Search API filter by image size

丶灬走出姿态 提交于 2020-01-15 05:41:12

问题


I'm working with Bing Image Search API using jsonp with jquery $.ajax. I'm able to retrieve the search results. But I'm unable to find a way to filter results by image size. I can't find anything about this in the documentation. Does anyone know if there is a way to filter results by image size or do any type of filtration for that matter.


回答1:


You can do Image.Filters=Size:Small to filter by small images, you can also use medium and large.




回答2:


Here's a more complete sample (The selected answer led to this) that might be helpful to someone who runs into this problem in the future:

request.Image = new ImageRequest();
request.Image.Filters = new string [1] {"Size:Small"};

More options to add to the "Filters" array can be found here. HTH.



来源:https://stackoverflow.com/questions/4860173/bing-image-search-api-filter-by-image-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!