class

Hpdf::Raw::RgbImage

Inherits Hpdf::Raw::Image / Reference / Object

create a new in-memory RGB image

Constructors

new(width : UInt32, height : UInt32)
Source

Instance methods

[]=(x : Number, y : Number, color : RgbColor)
Source
rgb_at(x : UInt32, y : UInt32, red : UInt8, green : UInt8, blue : UInt8)

sets the rgb value at x and y.

Source