C# Class Bloom.Book.ImageUpdater

Afficher le fichier Open project: BloomBooks/BloomDesktop

Méthodes publiques

Méthode Description
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

Method Details

CompressImage() public static méthode

public static CompressImage ( string path, IProgress progress ) : void
path string
progress IProgress
Résultat void

CompressImages() public static méthode

public static CompressImages ( string folderPath, IProgress progress ) : void
folderPath string
progress IProgress
Résultat void

CopyImageMetadataToWholeBook() public static méthode

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
Résultat void

GetImagePaths() public static méthode

public static GetImagePaths ( string folderPath ) : IEnumerable
folderPath string
Résultat IEnumerable

UpdateAllHtmlDataAttributesForAllImgElements() public static méthode

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
Résultat void

UpdateImgMetdataAttributesToMatchImage() public static méthode

public static UpdateImgMetdataAttributesToMatchImage ( string folderPath, XmlElement imgElement, IProgress progress ) : void
folderPath string
imgElement System.Xml.XmlElement
progress IProgress
Résultat void

UpdateImgMetdataAttributesToMatchImage() public static méthode

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
Résultat void