Class | PNG::Canvas |
In: |
lib/png/font.rb
lib/png.rb |
Parent: | Object |
A canvas used for drawing images. Origin is 0, 0 in the bottom left corner.
data | [R] | Raw data |
height | [R] | Height of the canvas |
width | [R] | Width of the canvas |
Write a string at [x, y] with font, optionally specifying a font, an alignment of :left, :center, or :right and the style to draw the annotation (see composite).
require 'png/font'
Draws a line using Xiaolin Wu‘s antialiasing technique.