class PNM::PGM

Defined in:

pnm/pgm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Int32, height : Int32, maxval : 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 maxval : Int32 #

[View source]
def maxval=(new_maxval : Int32) #

[View source]
def to_pbm(threshold : Int32) #

[View source]
def to_pbm #

[View source]
def to_ppm #

[View source]
def width : Int32 #

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

[View source]