<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n314</author_name>
  <author_url>https://blog.hatena.ne.jp/n314/</author_url>
  <blog_title>ログ日記</blog_title>
  <blog_url>https://n314.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>TCPDFでちょっとした図形を入れたい場合、画像を使わずに直接PDFに出力してしまう方法がある。 TCPDFのソースとマニュアルを見ていたらベジエ曲線が簡単に描けるようなのでやってみた。 （ベジェ曲線？どっち？昔聞いたときはベジエ曲線と発音されていたような気がする。） まずは円弧を描く。 &lt;?php // (snip) $x = $pdf-&gt;GetX(); $y = $pdf-&gt;GetY(); $w = 20; $h = 20; $cx = $x + $w / 2; $cy = $y + $h / 2; $cw = $w / 2; $start = 0; $end = $start + 255…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fn314.hatenablog.com%2Fentry%2F2021%2F06%2F25%2F200158&quot; title=&quot;TCPDFで円とベジェ曲線で図形を描く - ログ日記&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/n/n314/20210625/20210625195332.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-25 20:01:58</published>
  <title>TCPDFで円とベジェ曲線で図形を描く</title>
  <type>rich</type>
  <url>https://n314.hatenablog.com/entry/2021/06/25/200158</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
