C# Class MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.ImageResource

Inheritance: FileBasedResource
Datei anzeigen Open project: damienhaynes/moving-pictures

Public Methods

Method Description
FromUrl ( string url, bool ignoreRestrictions, ImageSize minSize, ImageSize maxSize, bool redownload ) : ImageLoadResults

Protected Methods

Method Description
GenerateThumbnail ( ) : void
VerifyAndResize ( ImageSize minSize, ImageSize maxSize ) : ImageLoadResults

Private Methods

Method Description
GetEncoder ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

Method Details

FromUrl() public method

public FromUrl ( string url, bool ignoreRestrictions, ImageSize minSize, ImageSize maxSize, bool redownload ) : ImageLoadResults
url string
ignoreRestrictions bool
minSize ImageSize
maxSize ImageSize
redownload bool
return ImageLoadResults

GenerateThumbnail() protected method

protected GenerateThumbnail ( ) : void
return void

VerifyAndResize() protected method

protected VerifyAndResize ( ImageSize minSize, ImageSize maxSize ) : ImageLoadResults
minSize ImageSize
maxSize ImageSize
return ImageLoadResults