C# Класс Bloom.HtmlThumbNailer

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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