如何从 TMDBImage 转换为 Bitmap 以便在图片框中显示它?
我当前查找图像的代码是
private void GetMovieInfo()
{
movieDatabase.MovieSearchAsync(this._name);
movieDatabase.MovieSearchCompleted += movieDatabase_MovieSearchCompleted;
}
void movieDatabase_MovieSearchCompleted(object sender, TmdbMovieSearchCompletedEventArgs e)
{
foreach(TmdbMovie movie in e.Movies)
{
foreach(TmdbImage moviePoster in movie.Posters)
{
//what do i do here to pull out the image?
}
}
}
this._name 是电影类
public class Movie
{
public string Name { get { return _name; } set { _name = value; } }
public string Producer { get { return _producer; } set { _producer = value; } }
public int Rating { get { return _rating; } }
public Image Covor { get; set; }
public string Description { get { return _description; } }
public int ReleaseYear { get { return _releaseYear; } set { _releaseYear = value}
}
我已经在网上寻找有关拉取图像的线索,但即使在阅读了文档之后我也找不到它。