class Hpdf::Raw::RgbImage

Overview

create a new in-memory RGB image

Defined in:

hpdf/raw_image.cr

Constructors

Instance Method Summary

Instance methods inherited from class Hpdf::Raw::Image

color_space : Hpdf::ColorSpace color_space, height : UInt32 height, to_unsafe to_unsafe, width : UInt32 width

Constructor methods inherited from class Hpdf::Raw::Image

new(width : UInt32, height : UInt32, color_space : ColorSpace) new

Constructor Detail

def self.new(width : UInt32, height : UInt32) #

[View source]

Instance Method Detail

def []=(x : Number, y : Number, color : RgbColor) #

[View source]
def rgb_at(x : UInt32, y : UInt32, red : UInt8, green : UInt8, blue : UInt8) #

sets the rgb value at x and y.


[View source]