BIMSource.SPWriter.Application.GetEmbeddedImage C# (CSharp) Method

GetEmbeddedImage() private method

private GetEmbeddedImage ( System app, string imageName ) : System.Windows.Media.ImageSource
app System
imageName string
return System.Windows.Media.ImageSource
        private ImageSource GetEmbeddedImage(System.Reflection.Assembly app, string imageName)
        {
            System.IO.Stream file = app.GetManifestResourceStream("BIMSource.NewSPWriter." + imageName);
             PngBitmapDecoder bd = new PngBitmapDecoder(file, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);

             return bd.Frames[0];
        }