{"provider_url":"https://hatena.blog","type":"rich","author_url":"https://blog.hatena.ne.jp/ni4muraano/","provider_name":"Hatena Blog","image_url":null,"height":"190","published":"2018-01-29 08:00:00","url":"https://ni4muraano.hatenablog.com/entry/2018/01/29/080000","title":"\u3010WPF\u3011 PNG \u21d4 BitmapSource\u306e\u5909\u63db","version":"1.0","categories":["C#","WPF"],"width":"100%","blog_title":"\u65c5\u884c\u597d\u304d\u306a\u30bd\u30d5\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5099\u5fd8\u9332","description":"\u3053\u3053\uff08\u65b9\u6cd5: PNG \u30a4\u30e1\u30fc\u30b8\u3092\u30a8\u30f3\u30b3\u30fc\u30c9\u304a\u3088\u3073\u30c7\u30b3\u30fc\u30c9\u3059\u308b\uff09\u3067\u8abf\u3079\u307e\u3057\u305f\u3002 PNG \u21d2 BitmapSource using System.IO; using System.Windows.Media.Imaging; public BitmapSource ReadPng(string pngPath) { var stream = new FileStream(pngPath, FileMode.Open, FileAccess.Read, FileShare.Read); var decoder = new PngBitmapDecoder(stream, BitmapCreateOp\u2026","author_name":"ni4muraano","blog_url":"https://ni4muraano.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fni4muraano.hatenablog.com%2Fentry%2F2018%2F01%2F29%2F080000\" title=\"\u3010WPF\u3011 PNG \u21d4 BitmapSource\u306e\u5909\u63db - \u65c5\u884c\u597d\u304d\u306a\u30bd\u30d5\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}