<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>technohippy</author_name>
  <author_url>https://blog.hatena.ne.jp/technohippy/</author_url>
  <blog_title>ずっと君のターン</blog_title>
  <blog_url>https://technohippy.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>RMagick</anon>
    <anon>Snippets</anon>
  </categories>
  <description>たとえば100x100の画像に10x10のマージンを用意するにはこんな感じ。 draw.define_clip_path 'clip' do draw.path &quot;M 10 10 L 10 90 L 90 90 L 10 90 z&quot; end draw.push draw.clip_path 'clip' # draw使っていろいろ描画 draw.pop パス指定のフォーマットはSVGのパスと同じらしい。 名前つきのパスを定義して、パス名でクリップ領域を指定しないとだめらしい。 あと、pushとpopがなぜか必要らしい。 なんかごちゃごちゃするのでMagick::Drawに次のようなメソッドを追…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechnohippy.hatenadiary.org%2Fentry%2F20071006%2F1191684870&quot; title=&quot; 画像をクリッピング - ずっと君のターン&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>2007-10-06 00:34:30</published>
  <title> 画像をクリッピング</title>
  <type>rich</type>
  <url>https://technohippy.hatenadiary.org/entry/20071006/1191684870</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
