Created
August 22, 2010 05:03
-
-
Save rekkusu/543340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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