Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GamerPicture
- {
- public uint TitleID;
- public int ImageID;
- public string PNGURL64
- {
- get
- {
- return "http://image.xboxlive.com/global/t." + TitleID.ToString("x") + "/tile/0/" + (ImageID + 0x20000).ToString("x");
- }
- }//URL :P
- public string FileName64
- {
- get
- {
- return "64_" + TitleID.ToString("x") + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x20000) + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x10000) + ".png";
- }
- }//the name of the image when its saved
- public string PNGURL32
- {
- get
- {
- return "http://image.xboxlive.com/global/t." + TitleID.ToString("x") + "/tile/0/" + (ImageID + 0x10000).ToString("x");
- }
- }
- public string FileName32
- {
- get
- {
- return "32_" + TitleID.ToString("x") + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x20000) + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x10000) + ".png";
- }
- }
- public string RefrenceKey
- {
- get
- {
- return TitleID.ToString("x") + (ImageID + 0x20000).ToString("x8") + (ImageID + 0x10000).ToString("x8");
- }
- }//the key in the fffe07d1's setting
- public GamerPicture(uint _TitleID, int _ImageID)
- {
- TitleID = _TitleID;
- ImageID = _ImageID;
- }
- public GamerPicture(string PictureLink64)
- {
- //http://image.xboxlive.com/global/t.fffe07d1/tile/0/20000
- TitleID = System.UInt32.Parse(PictureLink64.Remove(0, 35).Remove(8, 13), System.Globalization.NumberStyles.HexNumber);
- ImageID = System.Int32.Parse(PictureLink64.Remove(0, 51), System.Globalization.NumberStyles.HexNumber) - 0x20000;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment