{"action":"opened","issue":{"url":"https://api.github.com/repos/KirillOsenkov/PublicBugs/issues/14","repository_url":"https://api.github.com/repos/KirillOsenkov/PublicBugs","labels_url":"https://api.github.com/repos/KirillOsenkov/PublicBugs/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/KirillOsenkov/PublicBugs/issues/14/comments","events_url":"https://api.github.com/repos/KirillOsenkov/PublicBugs/issues/14/events","html_url":"https://github.com/KirillOsenkov/PublicBugs/issues/14","id":345428401,"node_id":"MDU6SXNzdWUzNDU0Mjg0MDE=","number":14,"title":"WPF Loading .jpg from disk","user":{"login":"KirillOsenkov","id":679326,"node_id":"MDQ6VXNlcjY3OTMyNg==","avatar_url":"https://avatars0.githubusercontent.com/u/679326?v=4","gravatar_id":"","url":"https://api.github.com/users/KirillOsenkov","html_url":"https://github.com/KirillOsenkov","followers_url":"https://api.github.com/users/KirillOsenkov/followers","following_url":"https://api.github.com/users/KirillOsenkov/following{/other_user}","gists_url":"https://api.github.com/users/KirillOsenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/KirillOsenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirillOsenkov/subscriptions","organizations_url":"https://api.github.com/users/KirillOsenkov/orgs","repos_url":"https://api.github.com/users/KirillOsenkov/repos","events_url":"https://api.github.com/users/KirillOsenkov/events{/privacy}","received_events_url":"https://api.github.com/users/KirillOsenkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-28T07:41:57Z","updated_at":"2018-07-28T07:41:57Z","closed_at":null,"author_association":"OWNER","body":"```\r\n        private static BitmapSource LoadBitmap()\r\n        {\r\n            var file = \"WindowsVistaBounceGrass.jpg\";\r\n            BitmapSource bitmapSource;\r\n            using (var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete))\r\n            {\r\n                //var bitmapImage = new BitmapImage();\r\n                //bitmapImage.CreateOptions = BitmapCreateOptions.IgnoreImageCache;\r\n                //bitmapImage.BeginInit();\r\n                //bitmapImage.StreamSource = stream;\r\n                //bitmapImage.EndInit();\r\n// this results in: https://stackoverflow.com/q/7060817/37899\r\n\r\n                bitmapSource = BitmapFrame.Create(\r\n                    stream,\r\n                    BitmapCreateOptions.None,\r\n                    BitmapCacheOption.OnLoad);\r\n            }\r\n\r\n            return bitmapSource;\r\n        }\r\n\r\n```"}}
{"actor":{"display_login":"KirillOsenkov"}}