class PNM::PPM
- PNM::PPM
- Reference
- Object
Defined in:
pnm/ppm.crConstructors
- .new(width : Int32, height : Int32, maxval : Int32, data : Slice(UInt8))
-
.new(red : PNM::PGM, green : PNM::PGM, blue : PNM::PGM)
takes 3 PGM objects as red, green and blue channels and outputs 1 PPM object
- .new(data : Slice(UInt8))
Instance Method Summary
- #*(other : self)
- #+(other : self)
- #-(other : self)
- #/(other : self)
- #blue
-
#crop(new_width : Int32, new_height : Int32)
probably doesnt work but eh
- #data : Slice(UInt8)
- #green
- #height : Int32
- #invert
- #maxval : Int32
- #maxval=(new_maxval : Int32)
- #red
- #to_pbm(threshold : Int32)
- #to_pbm
- #to_pgm
- #width : Int32
- #write(filename : String)
Constructor Detail
takes 3 PGM objects as red, green and blue channels and outputs 1 PPM object