C# 클래스 WaveBox.ApiHandler.Handlers.ArtApiHandler

상속: IApiHandler
파일 보기 프로젝트 열기: einsteinx2/WaveBox

공개 메소드들

메소드 설명
CheckPermission ( User user, string action ) : bool
Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void

Process returns a file stream containing album art

비공개 메소드들

메소드 설명
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

메소드 상세

CheckPermission() 공개 메소드

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

Process() 공개 메소드

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
리턴 void