<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>久々の C# ネタ、かつ UWP ネタということで、今年春のアップデートでできるようになった事についてご紹介。 UWP でスクリーンショットや動画の撮影などに使える GraphicsCapture API で、 Win32 API でおなじみの hWnd をソースとして使えるようになっていました。 ということで使い方をサクッと紹介。 といってもほぼほぼ公式サンプルそのままです。 前提条件として .NET Framework 4.7 WPF Microsoft.Windows.SDK.Contracts が導入・使用されているものとします。 [ComImport] [Guid(&quot;3628E81B…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2019%2F09%2F24%2Fuse-window-handle-in-graphicscapture-as-source&quot; title=&quot;UWP API の GraphicsCapture で Window Handle をソースとして使いたい - なつねこメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-23 15:00:00</published>
  <title>UWP API の GraphicsCapture で Window Handle をソースとして使いたい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2019/09/24/use-window-handle-in-graphicscapture-as-source</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
