<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deep_verdure</author_name>
  <author_url>https://blog.hatena.ne.jp/deep_verdure/</author_url>
  <blog_title>ゲーム開発の備忘録</blog_title>
  <blog_url>https://deep-verdure.hatenablog.com/</blog_url>
  <categories>
    <anon>DirectWrite</anon>
  </categories>
  <description>はじめに 今回は、DirectWriteを利用して実現をしたいものの、Web上や書籍で情報が少なく実装に迷った、あるいは時間がかかったものについてまとめました。なお、前回説明したフォントファイルからのフォントデータの読込みは実装済みの前提で話を進めますのでご注意ください。 文字列を透過する アルファ値を操作して文字列を透過させたいと考える場面は多いはずです。しかし、DirectWriteでは文字列に関連するクラスにはアルファ値を設定するメンバ関数がありません。 一体どこでアルファ値を設定すればよいのかというと、DrawTextW()関数呼出し時に渡すブラシにアルファ値を設定する必要があります。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdeep-verdure.hatenablog.com%2Fentry%2F2022%2F07%2F26%2F012943&quot; title=&quot;DirectWriteで文字列の透過、文字列幅の取得、縁付き文字列の描画を行う - ゲーム開発の備忘録&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>2022-07-26 01:29:43</published>
  <title>DirectWriteで文字列の透過、文字列幅の取得、縁付き文字列の描画を行う</title>
  <type>rich</type>
  <url>https://deep-verdure.hatenablog.com/entry/2022/07/26/012943</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
