コード例 #1
0
        public static Image GetImageEx(this PlaylistItem pli, bool large)
        {
            Image img = null;

            if (pli != null)
            {
                if (pli is RadioStationPlaylistItem)
                {
                    Bitmap bmp = Resources.Shoutcast;
                    bmp.MakeTransparent(Color.White);
                    img = bmp.Resize(large);
                }
                else if (pli is DeezerTrackPlaylistItem)
                {
                    Bitmap bmp = Resources.deezer;
                    bmp.MakeTransparent(Color.White);
                    img = bmp.Resize(large);
                }
                else
                {
                    img = pli.GetImage(true);
                }
            }

            return(img);
        }