ruby-libgd

GD::Image.new

Creates a new empty image (canvas).

Signature

GD::Image.new(width, height)

Parameters

Example

img = GD::Image.new(800, 600)

Notes

Creates a truecolor image with alpha support.