C# Класс Bloom.Book.ImageUpdater

Показать файл Открыть проект

Открытые методы

Метод Описание
CompressImage ( string path, IProgress progress ) : void
CompressImages ( string folderPath, IProgress progress ) : void
CopyImageMetadataToWholeBook ( string folderPath, HtmlDom dom, SIL.Windows.Forms.ClearShare.Metadata metadata, IProgress progress ) : void
GetImagePaths ( string folderPath ) : IEnumerable
UpdateAllHtmlDataAttributesForAllImgElements ( string folderPath, HtmlDom dom, IProgress progress ) : void

We mirror several metadata tags in the html for quick access by the UI. This method makes sure they are all up to date.

UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress ) : void
UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress, SIL.Windows.Forms.ClearShare.Metadata metadata ) : void

Описание методов

CompressImage() публичный статический Метод

public static CompressImage ( string path, IProgress progress ) : void
path string
progress IProgress
Результат void

CompressImages() публичный статический Метод

public static CompressImages ( string folderPath, IProgress progress ) : void
folderPath string
progress IProgress
Результат void

CopyImageMetadataToWholeBook() публичный статический Метод

public static CopyImageMetadataToWholeBook ( string folderPath, HtmlDom dom, SIL.Windows.Forms.ClearShare.Metadata metadata, IProgress progress ) : void
folderPath string
dom HtmlDom
metadata SIL.Windows.Forms.ClearShare.Metadata
progress IProgress
Результат void

GetImagePaths() публичный статический Метод

public static GetImagePaths ( string folderPath ) : IEnumerable
folderPath string
Результат IEnumerable

UpdateAllHtmlDataAttributesForAllImgElements() публичный статический Метод

We mirror several metadata tags in the html for quick access by the UI. This method makes sure they are all up to date.
public static UpdateAllHtmlDataAttributesForAllImgElements ( string folderPath, HtmlDom dom, IProgress progress ) : void
folderPath string
dom HtmlDom
progress IProgress
Результат void

UpdateImgMetdataAttributesToMatchImage() публичный статический Метод

public static UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress ) : void
folderPath string
imgElement System.Xml.XmlElement
progress IProgress
Результат void

UpdateImgMetdataAttributesToMatchImage() публичный статический Метод

public static UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress, SIL.Windows.Forms.ClearShare.Metadata metadata ) : void
folderPath string
imgElement System.Xml.XmlElement
progress IProgress
metadata SIL.Windows.Forms.ClearShare.Metadata
Результат void