private void PassCoverImageFromFB2(CoverPage coverPage, EPubFileV3 epubFile) { // if we have at least one coverpage image if ((coverPage != null) && (coverPage.HasImages()) && (coverPage.CoverpageImages[0].HRef != null)) { var coverPageFile = new CoverPageFileV3(coverPage.CoverpageImages[0], _referencesManager); epubFile.AddXHTMLFile(coverPageFile); Images.ImageIdUsed(coverPage.CoverpageImages[0].HRef); epubFile.SetCoverImageID(coverPage.CoverpageImages[0].HRef); } }
private void PassCoverImageFromFB2(CoverPage coverPage, EPubFileV3 epubFile) { // if we have at least one coverpage image if ((coverPage != null) && (coverPage.HasImages()) && (coverPage.CoverpageImages[0].HRef != null)) { var coverPageFile = new CoverPageFileV3(coverPage.CoverpageImages[0], _referencesManager); StructureManager.AddCoverPage(coverPageFile); Images.ImageIdUsed(coverPage.CoverpageImages[0].HRef); epubFile.SetCoverImageID(ReferencesUtils.GetIdFromLink(coverPage.CoverpageImages[0].HRef)); } }