<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KishikawaKatsumi</author_name>
  <author_url>https://blog.hatena.ne.jp/KishikawaKatsumi/</author_url>
  <blog_title>24/7 twenty-four seven</blog_title>
  <blog_url>https://blog.kishikawakatsumi.com/</blog_url>
  <categories>
    <anon>iPhone</anon>
    <anon>Objective-C</anon>
    <anon>Cocoa</anon>
  </categories>
  <description>How to Mask an Image [iOS developer:tips]; 白黒の画像をマスクとして、画像を任意の形に切り抜くことが出来ます。 上記の例はとても単純ですが、マスク画像を工夫すれば、複雑な形の画像もプログラムから簡単に作成できます。 //元画像 UIImage *iconImage = [UIImage imageNamed:@&quot;apple-touch-icon.png&quot;]; //マスク画像 UIImage *maskImage = [UIImage imageNamed:@&quot;mask.png&quot;]; //マスク画像をCGImageに変換する CGImageRef mas…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kishikawakatsumi.com%2Fentry%2F20090419%2F1240147321&quot; title=&quot;マスクを使って画像を切り抜く - 24/7 twenty-four seven&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/K/KishikawaKatsumi/20090419/20090419221337.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-04-19 22:22:01</published>
  <title>マスクを使って画像を切り抜く</title>
  <type>rich</type>
  <url>https://blog.kishikawakatsumi.com/entry/20090419/1240147321</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
