<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>酢ろぐ！</blog_title>
  <blog_url>https://blog.ch3cooh.jp/</blog_url>
  <categories>
    <anon>開発</anon>
    <anon>開発-Mac</anon>
  </categories>
  <description>iOSでいうところのUIImageはOS XですとNSImageに該当します(たぶん)。 iOSアプリを作っているとUIImageはよく使うのでなんとなく扱えるようになりますが、Macアプリを使ったことがないためNSImageの方はよく分からず……調べながら実装したものをメモっておきます。普段から使わないのでいざという時に忘れがちですね。 ファイルからNSImageを読み出す let sourcePath = &quot;/hoge/piyo.png&quot; let image = NSImage(contentsOfFile: sourcePath) NSImageをPNGフォーマットで保存する フォーマッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ch3cooh.jp%2Fentry%2F20160822%2F1471860000&quot; title=&quot;OSXアプリのSwiftのNSImageで扱う - 酢ろぐ！&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>2016-08-22 19:00:00</published>
  <title>OSXアプリのSwiftのNSImageで扱う</title>
  <type>rich</type>
  <url>https://blog.ch3cooh.jp/entry/20160822/1471860000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
