public Image GetImage(IMonikerAttributes monikerAttributes) { var imageMoniker = monikerAttributes.ImageMoniker; var imageAttributes = monikerAttributes.GetImageAttributes(); var vsUiObject = _imageDataProvider.GetVsUiObject(imageMoniker, imageAttributes); var image = _imageMonikerCreator.CreateImage(monikerAttributes, vsUiObject); return(image); }
public StdPicture GetStandardPicture(IMonikerAttributes monikerAttributes) { var imageMoniker = monikerAttributes.ImageMoniker; var imageAttributes = monikerAttributes.GetImageAttributes(); var vsUiObject = _imageDataProvider.GetVsUiObject(imageMoniker, imageAttributes); var image = _imageMonikerCreator.CreateImage(monikerAttributes, vsUiObject); var standardPicture = _imageMonikerCreator.CreateStandardPicture(monikerAttributes, image); return(standardPicture); }