ImageAPIs

Created: 2014-05-18 23:00
Updated: 2017-06-02 12:37
License: mit
c#

README.md

ImageApis

  • Image searching library in GelBooru, DanBooru, E-Shuushuu, and many others.
  • For .NET Framework 3.5
  • CopyRight (C) 2014, RyuaNerin

OpenSource Library

Example

Find Image
SearchImage sImage = new ImageAPIs.Search.Gelbooru();
SerachOption sOption = new SearchOption("tsutsukakushi_tsukiko");
IList<ImageInfo> lstImages = sImage.Search(sOption);
Find Image by Async
void FindImage()
{
    SearchImage sImage = new ImageAPIs.Search.Gelbooru();
    SerachOption sOption = new SearchOption("tsutsukakushi_tsukiko");
    sImage.SearchAsync(sOption, Callback, sImage);
}

void Callback(IAsyncResult asyncResult)
{
	SearchImage sImage = asyncResult.UserState as SearchImage;
	SearchResult result = sImage.EndAsync(asyncResult);
}
Add new BooruApi
public class Danbooru : SearchBooru
{
	public override int EngineID { get { return EngineIDs.eDanbooru; } }

	public Danbooru()
		: base("http://danbooru.donmai.us/posts.json", "tags", "page", "limit", true)
	{
	}
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more