/// <summary> /// データベースのアイコンを出力する /// </summary> /// <param name="db"></param> /// <returns></returns> public Image ExportIcon(IDatabase db) { EnsureSession(); string xml = ""; Domino.NotesDXLExporter exporter = this._session.CreateDXLExporter(); exporter.OutputDOCTYPE = false; exporter.ConvertNotesbitmapsToGIF = true; Domino.NotesDatabase ndb = db.InnerObject as Domino.NotesDatabase; if (!string.IsNullOrEmpty(ndb.Server)) { //Server中のファイルをコピーする ndb = this.CloneDatabase(ndb); } try { Domino.NotesDocument iconDoc = ndb.GetDocumentByID("FFFF0010"); xml = exporter.Export(iconDoc); } catch (Exception) { Domino.NotesNoteCollection notes = ndb.CreateNoteCollection(false); notes.SelectIcon = true; notes.BuildCollection(); xml = exporter.Export(notes); } byte[] rawData = GetRawIconData(xml); IconCreator creator = new IconCreator(); Image rawIcon = creator.getRawIconImage(rawData); return(rawIcon); }
public Image GetLargeNotesIcon(Image rawIcon, string title) { IconCreator creator = new IconCreator(); return(creator.GetLargeIcon(rawIcon, title)); }
public Image GetLargeMonoIcon(Image rawIcon) { IconCreator creator = new IconCreator(); return(creator.GetLargeMonoIcon(rawIcon)); }
public Image GetSmallIcon(Image rawIcon) { IconCreator creator = new IconCreator(); return(creator.GetSmallIcon(rawIcon)); }