<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moko_03_25</author_name>
  <author_url>https://blog.hatena.ne.jp/moko_03_25/</author_url>
  <blog_title>ゲームエフェクトデザイナーのブログ | A Real-Time VFX Artist's Blog</blog_title>
  <blog_url>https://effect.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>フォーム上でPictureBoxを２つ重ねて、下のレイヤーは背景用・上のレイヤーは透明にして一部だけ描画したい場合があると思います。 （画像を読み込んでトリミングするために選択範囲を描画したい場合など）こちらが実際にスクリーンショット画像を取り込んでPictureBox1に表示し、PictureBox2で赤いラインを引くのを試してみてうまくいった状態になります。 しかし落とし穴がいくつかあるのでメモしておきたいと思います。まずForm1上にPictureBox1を置いて想定する位置に配置し、PictureBox2は小さくても良いのでLocationを 0, 0 にしておきます。 またPictu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feffect.hatenablog.com%2Fentry%2F2020%2F03%2F11%2F234534&quot; title=&quot;C# PictureBoxを２つ重ねるサンプル - ゲームエフェクトデザイナーのブログ | A Real-Time VFX Artist&amp;#39;s Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/moko_03_25/20200311/20200311232257.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-11 23:45:34</published>
  <title>C# PictureBoxを２つ重ねるサンプル</title>
  <type>rich</type>
  <url>https://effect.hatenablog.com/entry/2020/03/11/234534</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
