class

Hpdf::Raw::GrayImage

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

create a new in-memory image with gray scale. Import using Doc#load_raw_image_from_mem

Constructors

new(width : UInt32, height : UInt32)
Source

Instance methods

[]=(x : Number, y : Number, scale : Number)

sets the gray value at x and y via scale. 0xff is white and 0x00 is black.

Source
gray_at(x : UInt32, y : UInt32, scale : UInt8)

sets the gray value at x and y via scale. 0xff is white and 0x00 is black.

Source