C# 클래스 Bloom.Edit.PageEditingModel

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

공개 메소드들

메소드 설명
ChangePicture ( string bookFolderPath, ElementProxy imgOrDivWithBackgroundImage, SIL.Windows.Forms.ImageToolbox.PalasoImage imageInfo, IProgress progress ) : void

UpdateMetadataAttributesOnImage ( ElementProxy imgOrDivWithBackgroundImage, SIL.Windows.Forms.ImageToolbox.PalasoImage imageInfo ) : void

비공개 메소드들

메소드 설명
IsSameFilePath ( string bookFolderPath, UrlPathString src, SIL.Windows.Forms.ImageToolbox.PalasoImage imageInfo ) : bool

Check whether the new image file is the same as the one we already have chosen. (or at least the same pathname in the filesystem)

See https://silbloom.myjetbrains.com/youtrack/issue/BL-2776. If the user goes out of his way to choose the exact same picture file from the original location again, a copy will still be created with a slightly revised name. Cropping a picture also results in a new copy of the file with the revised name. We still need a tool to remove unused picture files from a book's folder. (ie, BL-2351)

메소드 상세

ChangePicture() 공개 메소드

public ChangePicture ( string bookFolderPath, ElementProxy imgOrDivWithBackgroundImage, SIL.Windows.Forms.ImageToolbox.PalasoImage imageInfo, IProgress progress ) : void
bookFolderPath string
imgOrDivWithBackgroundImage ElementProxy Can be an XmlElement (during testing)
imageInfo SIL.Windows.Forms.ImageToolbox.PalasoImage
progress IProgress
리턴 void

UpdateMetadataAttributesOnImage() 공개 정적인 메소드

public static UpdateMetadataAttributesOnImage ( ElementProxy imgOrDivWithBackgroundImage, SIL.Windows.Forms.ImageToolbox.PalasoImage imageInfo ) : void
imgOrDivWithBackgroundImage ElementProxy
imageInfo SIL.Windows.Forms.ImageToolbox.PalasoImage
리턴 void