问题
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