According to the RiotSharp documentation , ImageStatic
is not a class that contains the image, but represents the image.
It is mentioned that the class ImageStatic
has the following properties (or attributes):
-
Full : Full name for this image. System.String
-
Group Image's group (spell, champion, item, etc.). System.String
-
Height : Image's height. System.Int32
-
Sprite : Image's sprite. System.String
-
Width : Image's width. System.Int32
-
X : X starting point for this image. System.Int32
-
AND : And starting point for this image. System.Int32
Therefore I assume that in Full
you should find the name of the image you want to obtain, but not the image itself; to get the image you may have to bring it from a url concatenating the name of the image. Something like this:
for(int j = 0; j < ImagenHechizos.Count(); j++)
{
String imageURL = "http://ddragon.leagueoflegends.com/cdn/6.24.1/img/spell/"
+ SharkiQuerys.Hechizos[j].Image.Full;
ImagenHechizos[j].ImageLocation = imageURL;
}
For example this would be one of the images to obtain:
link
If you have any questions related to the RiotGames API, you can also ask in your own forum: RiotGames Developers