C# 클래스 TraktPlugin.GUI.GUIImageHandler

파일 보기 프로젝트 열기: trakt/Trakt-for-Mediaportal 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetDefaultPoster string
GetRatingOverlay RatingOverlayImage

공개 메소드들

메소드 설명
DownloadImage ( string url, string localFile ) : bool

Download an image if it does not exist locally

DrawOverlayOnAvatar ( string origAvartar, RatingOverlayImage ratingType, Size size ) : Bitmap

Draws a trakt overlay, rating icon on a poster This is done in memory and wont touch the existing file

DrawOverlayOnEpisodeThumb ( string origThumb, MainOverlayImage mainType, RatingOverlayImage ratingType, Size size ) : Bitmap

Draws a trakt overlay, library/seen/watchlist icon on a episode thumb This is done in memory and wont touch the existing file

DrawOverlayOnPoster ( string origPoster, MainOverlayImage mainType, RatingOverlayImage ratingType ) : Bitmap
DrawOverlayOnPoster ( string origPoster, MainOverlayImage mainType, RatingOverlayImage ratingType, Size size ) : Bitmap

Draws a trakt overlay, library/seen/watchlist icon on a poster This is done in memory and wont touch the existing file

GetTextureIdentFromFile ( string filename ) : string

Gets a MediaPortal texture identifier from filename

GetTextureIdentFromFile ( string filename, string suffix ) : string
LoadFanart ( TraktPlugin.GUI.ImageSwapper backdrop, string filename ) : void
LoadImage ( string file ) : Image

Loads an image FAST from file

LocalImageFilename ( this image, ArtworkType type ) : string

Gets the local filename of an image from a Trakt URL

ToClearUrl ( this url ) : string

Cleans a uri such that a friendly file system name can be derived

비공개 메소드들

메소드 설명
GetDefaultPoster ( bool largePoster = true ) : string

Returns the default Poster to display in the facade

GetRatingOverlay ( int userRating ) : RatingOverlayImage

Get a overlay for images that represent a users rating

메소드 상세

DownloadImage() 공개 정적인 메소드

Download an image if it does not exist locally
public static DownloadImage ( string url, string localFile ) : bool
url string Online URL of image to download
localFile string Local filename to save image
리턴 bool

DrawOverlayOnAvatar() 공개 정적인 메소드

Draws a trakt overlay, rating icon on a poster This is done in memory and wont touch the existing file
public static DrawOverlayOnAvatar ( string origAvartar, RatingOverlayImage ratingType, Size size ) : Bitmap
origAvartar string
ratingType RatingOverlayImage
size System.Drawing.Size Size of returned image
리턴 System.Drawing.Bitmap

DrawOverlayOnEpisodeThumb() 공개 정적인 메소드

Draws a trakt overlay, library/seen/watchlist icon on a episode thumb This is done in memory and wont touch the existing file
public static DrawOverlayOnEpisodeThumb ( string origThumb, MainOverlayImage mainType, RatingOverlayImage ratingType, Size size ) : Bitmap
origThumb string Filename of the untouched episode thumb
mainType MainOverlayImage
ratingType RatingOverlayImage
size System.Drawing.Size Size of returned image
리턴 System.Drawing.Bitmap

DrawOverlayOnPoster() 공개 정적인 메소드

public static DrawOverlayOnPoster ( string origPoster, MainOverlayImage mainType, RatingOverlayImage ratingType ) : Bitmap
origPoster string
mainType MainOverlayImage
ratingType RatingOverlayImage
리턴 System.Drawing.Bitmap

DrawOverlayOnPoster() 공개 정적인 메소드

Draws a trakt overlay, library/seen/watchlist icon on a poster This is done in memory and wont touch the existing file
public static DrawOverlayOnPoster ( string origPoster, MainOverlayImage mainType, RatingOverlayImage ratingType, Size size ) : Bitmap
origPoster string Filename of the untouched poster
mainType MainOverlayImage
ratingType RatingOverlayImage
size System.Drawing.Size Size of returned image
리턴 System.Drawing.Bitmap

GetTextureIdentFromFile() 공개 정적인 메소드

Gets a MediaPortal texture identifier from filename
public static GetTextureIdentFromFile ( string filename ) : string
filename string Filename to generate texture
리턴 string

GetTextureIdentFromFile() 공개 정적인 메소드

public static GetTextureIdentFromFile ( string filename, string suffix ) : string
filename string
suffix string
리턴 string

LoadFanart() 공개 정적인 메소드

public static LoadFanart ( TraktPlugin.GUI.ImageSwapper backdrop, string filename ) : void
backdrop TraktPlugin.GUI.ImageSwapper
filename string
리턴 void

LoadImage() 공개 정적인 메소드

Loads an image FAST from file
public static LoadImage ( string file ) : Image
file string
리턴 Image

LocalImageFilename() 공개 정적인 메소드

Gets the local filename of an image from a Trakt URL
public static LocalImageFilename ( this image, ArtworkType type ) : string
image this
type ArtworkType The Type of image to get
리턴 string

ToClearUrl() 공개 정적인 메소드

Cleans a uri such that a friendly file system name can be derived
public static ToClearUrl ( this url ) : string
url this
리턴 string