Class PNG::Canvas
In: lib/PatchedPNG.rb
Parent: Object

PNG canvas

Methods

[]   []=   each   line   new   point  

Attributes

data  [R]  Raw data
height  [R]  Height of the canvas
width  [R]  Width of the canvas

Public Class methods

Public Instance methods

Retrieves the color of the pixel at (x, y).

Sets the color of the pixel at (x, y) to color.

Iterates over each pixel in the canvas.

Draws a line using Xiaolin Wu‘s antialiasing technique.

en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm

Blends color onto the color at point (x, y).

[Validate]