Sha256: 4313c58dc43107c751b62e2bbe7a126d109da4316a6aea0d9a14a95ab18e9e7c

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>to_picture (C64GeosFont)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/native_file_types/c64/C64GeosFont.rb, line 113</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_picture</span>
  <span class="ruby-identifier">require</span> <span class="ruby-value str">'PatchedPNG'</span>
  <span class="ruby-identifier">canvas</span> = <span class="ruby-constant">PNG</span><span class="ruby-operator">::</span><span class="ruby-constant">Canvas</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">picture_width</span>,<span class="ruby-identifier">picture_height</span>, <span class="ruby-constant">BACKGROUND_COLOUR</span>
  <span class="ruby-identifier">draw_sampler</span>(<span class="ruby-identifier">canvas</span>)
  <span class="ruby-identifier">png</span> = <span class="ruby-constant">PNG</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">canvas</span>
  <span class="ruby-identifier">result</span>=<span class="ruby-identifier">png</span>.<span class="ruby-identifier">raw_bytes</span>
  <span class="ruby-identifier">result</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ripxplore-0.12.0 doc/classes/C64GeosFont.src/M000189.html