C# 클래스 AdaptiveImages.AdaptiveImageHandler

상속: IHttpHandler
파일 보기 프로젝트 열기: davemcdermid/AdaptiveImages

공개 메소드들

메소드 설명
AdaptiveImageHandler ( ) : System
ProcessRequest ( HttpContext context ) : void

비공개 메소드들

메소드 설명
BrowserDetect ( HttpContext context ) : bool

Switch off mobile-first if browser is identifying as desktop

GenerateImage ( string source_file, string cache_file, int resolution ) : string

Generates a resized image at a specified resolution from the source_file and saves to the cache_file

GetEncoderForMimeType ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo

Return the ImageCodecInfo for a given mime-type

RefreshCache ( string source_file, string cache_file, int resolution ) : string

Deletes the cache_file if older than source_file

SendErrorImage ( HttpContext context, string message ) : void

Sends an image to the client with the specified message

SendImage ( HttpContext context, string filename, int browser_cache ) : void

Sends an image to the client with caching enabled

메소드 상세

AdaptiveImageHandler() 공개 메소드

public AdaptiveImageHandler ( ) : System
리턴 System

ProcessRequest() 공개 메소드

public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
리턴 void