C# Class WaveBox.ApiHandler.Handlers.ArtApiHandler

Inheritance: IApiHandler
Datei anzeigen Open project: einsteinx2/WaveBox

Public Methods

Method Description
CheckPermission ( User user, string action ) : bool
Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void

Process returns a file stream containing album art

Private Methods

Method Description
CreateStream ( Art art ) : Stream
FolderArtPath ( Folder folder ) : string
FolderContainsImages ( string dir, string &firstImageFoundPath ) : bool
ResizeImageGDI ( Image imgToResize, Size size ) : Image

Code which can resize an image and return it as requested

ResizeImageMagick ( Stream stream, int width, double blurSigma ) : byte[]
StreamForFolder ( int folderId ) : Stream
StreamForSong ( int songId ) : Stream

Method Details

CheckPermission() public method

public CheckPermission ( User user, string action ) : bool
user WaveBox.Core.Model.User
action string
return bool

Process() public method

Process returns a file stream containing album art
public Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void
uri UriWrapper
processor IHttpProcessor
user WaveBox.Core.Model.User
return void