C# 클래스 Bloom.Book.ImageUpdater

파일 보기 프로젝트 열기: BloomBooks/BloomDesktop

공개 메소드들

메소드 설명
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