Bitmap GetBitmapFromId(string id) { if (binaries != null) { string fileName = binaries.GetBinaryFileName(id); return(document.GetBitmapFromFileName(fileName)); } return(document.GetBitmapFromId(id)); }