<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>OpenGL</anon>
  </categories>
  <description>Ruby で OpenGL のウィンドウ・キャプチャをしようと苦労していたのですが、すばらしいライブラリを発見して成功しました。ウィンドウを BMP ファイルに落とします。Ruby で OpenGL を使うことについては、ここが参考になれば幸いです。RubyでBMPファイルをあつかう: 脈絡なんか気にしない リンク先のブログ記事で助かりました。コードはこちら。必要な部分を流用させてもらいました（感謝！）。まずはそれから。 class BitMap def initialize(width, height, dpi = 96) @width = width @height = height @l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2016%2F04%2F29%2F180630&quot; title=&quot;OpenGL のウィンドウを bmp 画像ファイルとして保存する（Ruby） - Camera Obscura&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>http://cdn-ak.f.st-hatena.com/images/fotolife/o/obelisk2/20160429/20160429181505.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-29 18:06:30</published>
  <title>OpenGL のウィンドウを bmp 画像ファイルとして保存する（Ruby）</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2016/04/29/180630</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
