Skip to content

Instantly share code, notes, and snippets.

@rekkusu
Created August 22, 2010 05:03
Show Gist options
  • Save rekkusu/543340 to your computer and use it in GitHub Desktop.
Save rekkusu/543340 to your computer and use it in GitHub Desktop.
/*
* 102行付近GetImage
* こんな感じにすればpcklesに対応できる
*
* 実際のURLは
* http://pckles.com/[user]/[pic_id](.png)
* http://pckl.es/[user]/[pic_id](.png)
* 正規表現使ったほうが正確かもしれない。
*
*/
if (url.StartsWith("http://twitpic.com/"))
{
// ~
}
// ~
else if (url.StartsWith("http://pckles.com/") || url.StartsWith("http://pckl.es/"))
{
try
{
return new Image(new Uri(url + ".png"));
}
catch
{
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment