예제 #1
0
파일: link.c 프로젝트: bok/libmockspotify
sp_link *
sp_link_create_from_artist_portrait(sp_artist *artist, sp_image_size size)
{
  const byte *image_id = sp_artist_portrait(artist, size);

  if ( ! image_id)
  {
    return NULL;
  }

  return sp_link_create_from_string(image_id_to_uri(image_id));
}
예제 #2
0
ImageId Artist::portrait(ImageSize size) const
{
    return isValid() ? sp_artist_portrait(handle(), static_cast<sp_image_size>(size)) : 0;
}