如何从TMDBImage转换为Bitmap以便我可以在pictureBox中显示它?
我目前查找图片的代码是
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}
}
我在网上看到了提取图像的线索,但即使在阅读完文档后我也找不到它。