<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mactkg</author_name>
  <author_url>https://blog.hatena.ne.jp/mactkg/</author_url>
  <blog_title>半空洞男女関係</blog_title>
  <blog_url>https://mactkg.hateblo.jp/</blog_url>
  <categories>
    <anon>Processing</anon>
    <anon>プログラミング</anon>
    <anon>大学</anon>
  </categories>
  <description>学校の課題で、直線検出みたいな課題をしてる、デバッグ用に色々書いているけど、提出すべきなのは一番左の画像一枚。PImageに対して書き込んでるわけではないから、うまく切り取って保存できないという時があるでしょう。 素直に save()したあとにトリムしても良いのですが。Processingにはget()という関数があるので、これを使うと便利です。具体的にはこんな感じです。 PImage saveImage = get(0, 0, img.width, img.height); saveImage.save(&quot;yay.png&quot;); ガンガン単位を取得していきましょう。 ネタ画像 from Str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmactkg.hateblo.jp%2Fentry%2F2015%2F06%2F03%2F140302&quot; title=&quot;Processingで画面上のキャンバスから切り取って画像を保存する - 半空洞男女関係&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://i.gyazo.com/5b0222e5c3b1069fcaa5ac0385a6f565.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-03 14:03:02</published>
  <title>Processingで画面上のキャンバスから切り取って画像を保存する</title>
  <type>rich</type>
  <url>https://mactkg.hateblo.jp/entry/2015/06/03/140302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
