{"id":5222,"date":"2014-12-17T20:29:46","date_gmt":"2014-12-17T11:29:46","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5222"},"modified":"2014-12-17T20:31:27","modified_gmt":"2014-12-17T11:31:27","slug":"%e7%94%bb%e5%83%8f%e3%81%ae%e3%82%b5%e3%82%a4%e3%82%ba%e3%81%8c%e5%a4%a7%e3%81%8d%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e3%82%8a%e5%b0%8f%e3%81%95%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e3%82%8a%e3%81%99","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5222","title":{"rendered":"\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u304c\u5927\u304d\u304f\u306a\u3063\u305f\u308a\u5c0f\u3055\u304f\u306a\u3063\u305f\u308a\u3059\u308b (Windows\/.NET\/WPF)"},"content":{"rendered":"<p>\u3042\u308b\u3044\u306f\u3001\u753b\u50cf\u3092\u30d4\u30af\u30bb\u30eb\u7b49\u500d (dot-by-dot) \u3067\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3002<\/p>\n<p><!--more--><\/p>\n<p>WPF \u3067\u4f55\u3082\u8003\u3048\u305a\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u3068\u3001\u753b\u50cf\u306b\u3088\u3063\u3066\u306f\u30d4\u30af\u30bb\u30eb\u7b49\u500d\u3067\u306f\u8868\u793a\u3055\u308c\u305a\u3001\u5927\u304d\u304f\u306a\u3063\u305f\u308a\u5c0f\u3055\u304f\u306a\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<code>Image<\/code> \u306e\u5360\u3081\u308b\u9818\u57df\u306b\u5f93\u3063\u3066\u30ea\u30b5\u30a4\u30ba\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001<code>Image<\/code> \u306b <code>Stretch=\"None\"<\/code> \u3068\u304b\u8a2d\u5b9a\u3057\u3066\u3082\u7121\u610f\u5473\u3067\u3059\u3002<\/p>\n<blockquote>\n<pre>&lt;Window x:Class=\"ImageSize.MainWindow\"\r\n        xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n        xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n        Title=\"MainWindow\" Height=\"350\" Width=\"525\">\r\n    &lt;Window.Resources>\r\n        &lt;BitmapImage x:Key=\"someimage\" UriSource=\"someimage.png\"\/>\r\n    &lt;\/Window.Resources>\r\n    &lt;StackPanel>\r\n        &lt;Image Source=\"{StaticResource someimage}\"\/>\r\n    &lt;\/StackPanel>\r\n&lt;\/Window><\/pre>\n<\/blockquote>\n<p>\u4f55\u6545\u304b\u3068\u3044\u3046\u3068\u3001WPF \u306f\uff08\u3088\u308a\u6b63\u78ba\u306b\u306f Windows \u306f\uff09\u753b\u9762\u3092 96dpi \u3060\u3068\u60f3\u5b9a\u3057\u3066\u304a\u308a\u3001\u753b\u50cf\u306b 96dpi \u3067\u306a\u3044 dpi \u5024\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u300c\u6b63\u3057\u3044\u5bf8\u6cd5\u300d\uff08\u30e1\u30fc\u30c8\u30eb\u3067\u6e2c\u308b\u5b9f\u969b\u306e\u9577\u3055\uff09\u306b\u306a\u308b\u3088\u3046\u306b\u30ea\u30b5\u30a4\u30ba\u3057\u3066\u8868\u793a\u3059\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3069\u3046\u3057\u3066\u3082\u30d4\u30af\u30bb\u30eb\u7b49\u500d\u3067\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3069\u308c\u304b\u306e\u65b9\u6cd5\u3092\u3068\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>96dpi \u306e\u753b\u50cf\u3092\u7528\u610f\u3059\u308b\u3002<\/li>\n<li>dpi \u5024\u306e\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u753b\u50cf\u3092\u7528\u610f\u3059\u308b\u3002<\/li>\n<li>\u30b5\u30a4\u30ba\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3067\u81ea\u52d5\u7684\u306b\u8a2d\u5b9a\u3055\u305b\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<br \/>\n<blockquote>\n<pre>&lt;Image Source=\"{StaticResource png72dpi}\"\r\n       Width=\"{Binding RelativeSource={RelativeSource Self}, Path=Source.PixelWidth}\"\r\n       Height=\"{Binding RelativeSource={RelativeSource Self}, Path=Source.PixelHeight}\"\/><\/pre>\n<\/blockquote>\n<\/li>\n<\/ul>\n<hr \/>\n<p>\u3055\u3066\u3001\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30c6\u30ad\u30b9\u30c8\u3084\u305d\u306e\u4ed6\u306e\u9805\u76ee\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/12\/windows-dpi-settings.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/12\/windows-dpi-settings.png\" alt=\"Windows \u306e DPI \u306e\u8a2d\u5b9a\" width=\"420\" height=\"300\" class=\"alignnone size-full wp-image-5233\" \/><\/a><\/p>\n<p>\u3053\u308c\u3092\u3044\u3058\u3063\u305f\u6642\u3001<\/p>\n<p>100% \u306e\u5834\u5408<br \/>\n<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/12\/wpf-images-100pct.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/12\/wpf-images-100pct.png\" alt=\"\u89e3\u50cf\u5ea6\u304c 100% \u306e\u5834\u5408\" width=\"280\" height=\"280\" class=\"alignnone size-full wp-image-5229\" \/><\/a><\/p>\n<p>150% \u306e\u5834\u5408<br \/>\n<a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/12\/wpf-images-150pct.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/12\/wpf-images-150pct.png\" alt=\"\u89e3\u50cf\u5ea6\u304c 150% \u306e\u5834\u5408\" width=\"360\" height=\"400\" class=\"alignnone size-full wp-image-5230\" \/><\/a><\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3055\u308c\u305f\u5834\u5408\u3067\u3042\u3063\u3066\u3082\u30d4\u30af\u30bb\u30eb\u7b49\u500d\u3067\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u3082\u3046\u4e00\u5de5\u592b\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30bf\u30d6\u30ec\u30c3\u30c8\u306a Windows \u3067\u3069\u3046\u3044\u3046\u6319\u52d5\u306b\u306a\u308b\u304b\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u308b\u3044\u306f\u3001\u753b\u50cf\u3092\u30d4\u30af\u30bb\u30eb\u7b49\u500d (dot-by-dot) \u3067\u8868\u793a\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-5222","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5222"}],"version-history":[{"count":13,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5222\/revisions"}],"predecessor-version":[{"id":5238,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5222\/revisions\/5238"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5222"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}