C# 클래스 Bloom.HtmlThumbNailer

상속: IDisposable
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Advance void
CreateImage Image
CreateThumbNail bool
GetBrowserForPaperSize Gecko.GeckoWebBrowser
GetPaperSizeName string
MakeNewBrowser Gecko.GeckoWebBrowser
MakeThumbNail Image
OpenTempFileInBrowser bool
ProcessOrder void
QueueOrder void
SetWidthAndHeight System.Drawing.Size
_browser_OnDocumentCompleted void

공개 메소드들

메소드 설명
Dispose ( ) : void
GetThumbnail ( string key, HtmlDom document, ThumbnailOptions options ) : Image

A synchronous version of getting thumbnails, currently used by the image server to get thumbnails that are used in the add page dialog.

GetThumbnail ( string folderForThumbNailCache, string key, HtmlDom document, ThumbnailOptions options, Action callback, Action errorCallback, bool async ) : void

GetThumbnailAsync ( string folderForThumbNailCache, string key, HtmlDom document, ThumbnailOptions options, Action callback, Action errorCallback ) : void

HtmlThumbNailer ( NavigationIsolator isolator ) : System
PageChanged ( string id ) : void

How this page looks has changed, so remove from our cache

RemoveFromCache ( string key ) : void

비공개 메소드들

메소드 설명
Advance ( Control invokeTarget ) : void

This is a trick that processes waiting for thumbnails can use in situations where Application.Idle is not being invoked. Such uses must pass a non-null control created in the thread where Application_Idle should be invoked (i.e., the UI thread)

CreateImage ( Gecko.GeckoWebBrowser browser ) : Image
CreateThumbNail ( ThumbnailOrder order, Gecko.GeckoWebBrowser browser, Image &thumbnail ) : bool

Returns true if it make some attempt at an image, false if navigation is currently suppressed.

GetBrowserForPaperSize ( XmlDocument document ) : Gecko.GeckoWebBrowser
GetPaperSizeName ( XmlDocument document ) : string
MakeNewBrowser ( ) : Gecko.GeckoWebBrowser
MakeThumbNail ( Image bmp, ThumbnailOptions options ) : Image
OpenTempFileInBrowser ( Gecko.GeckoWebBrowser browser, string filePath ) : bool
ProcessOrder ( object stateInfo ) : void
QueueOrder ( ThumbnailOrder order ) : void
SetWidthAndHeight ( Gecko.GeckoWebBrowser browser ) : Size
_browser_OnDocumentCompleted ( object sender, GeckoDocumentCompletedEventArgs geckoDocumentCompletedEventArgs ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetThumbnail() 공개 메소드

A synchronous version of getting thumbnails, currently used by the image server to get thumbnails that are used in the add page dialog.
public GetThumbnail ( string key, HtmlDom document, ThumbnailOptions options ) : Image
key string Used to retrieve the thumbnail from a dictionary if we are asked for /// the same one repeatedly
document Bloom.Book.HtmlDom Whose rendering will produce the thumbnail content.
options ThumbnailOptions
리턴 Image

GetThumbnail() 공개 메소드

public GetThumbnail ( string folderForThumbNailCache, string key, HtmlDom document, ThumbnailOptions options, Action callback, Action errorCallback, bool async ) : void
folderForThumbNailCache string
key string whatever system you want... just used for caching
document Bloom.Book.HtmlDom
options ThumbnailOptions
callback Action
errorCallback Action
async bool
리턴 void

GetThumbnailAsync() 공개 메소드

public GetThumbnailAsync ( string folderForThumbNailCache, string key, HtmlDom document, ThumbnailOptions options, Action callback, Action errorCallback ) : void
folderForThumbNailCache string
key string whatever system you want... just used for caching
document Bloom.Book.HtmlDom
options ThumbnailOptions
callback Action
errorCallback Action
리턴 void

HtmlThumbNailer() 공개 메소드

public HtmlThumbNailer ( NavigationIsolator isolator ) : System
isolator NavigationIsolator
리턴 System

PageChanged() 공개 메소드

How this page looks has changed, so remove from our cache
public PageChanged ( string id ) : void
id string
리턴 void

RemoveFromCache() 공개 메소드

public RemoveFromCache ( string key ) : void
key string
리턴 void