Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
IProperties tProps = thumbnail.Properties; tProps["ITSOFranchiseCode"] = franchiseCode; thumbnail.AnnotatedObject = gallery; // Better to use immutable ESN than element position thumbnail.DescriptiveText = "thumbnail image [" + esn + "]"; thumbnail.AnnotatedContentElement = esn; IContentTransfer tCt = Factory.ContentTransfer.CreateInstance(); tCt.ContentType = type; if (rName != null && rName.Length > 0) { tCt.RetrievalName = "t_" + rName; } // The computation of the thumbnail is done elsewhere Stream photoStream = gCt.AccessContentStream(); tCt.SetCaptureSource(ComputeThumbnailGraphics(type, photoStream)); IContentElementList thumbElements = Factory.ContentElement.CreateList(); thumbElements.Add(tCt);