<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Windows</anon>
  </categories>
  <description>2028/8/25：C# 12 (.NET 8)版のコードはこちらです。 動作確認環境：C# 9.0 preview C#でimageres.dll.munからProgressRingのリソースのPNGデータを読み込むサンプルコードです。実際には複数のPNGリソースが保管されているため、代表としてリソースID 5021を読み込んでいます。 Win32APIのLockResource関数はリソースデータのアドレスを返すため、通常はバイト配列にMarshal.Copyした後MemoryStreamを介してImageクラスのインスタンスを作成できます。unsafe環境ではアドレスを直接Unmanag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F01%2F16%2F011918&quot; title=&quot;C# imageres.dll.munからProgressRingのリソース（PNGデータ）を読み込む - potisanのプログラミングメモ&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>2021-01-16 01:19:18</published>
  <title>C# imageres.dll.munからProgressRingのリソース（PNGデータ）を読み込む</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2021/01/16/011918</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
