class PNM::PBM

Defined in:

pnm/pbm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Int32, height : Int32, data : Slice(UInt8)) #

[View source]
def self.new(data : Slice(UInt8)) #

[View source]

Instance Method Detail

def *(other : self) #

[View source]
def +(other : self) #

[View source]
def -(other : self) #

[View source]
def /(other : self) #

[View source]
def data : Slice(UInt8) #

[View source]
def height : Int32 #

[View source]
def invert #

[View source]
def to_pgm(maxval : Int32) #

[View source]
def to_pgm #

[View source]
def to_ppm(maxval : Int32) #

[View source]
def to_ppm #

[View source]
def width : Int32 #

[View source]
def write(filename : String) #

[View source]