-
Notifications
You must be signed in to change notification settings - Fork 0
PNM::PBM
Givralix edited this page Feb 18, 2017
·
4 revisions
self.data
Returns self.data.
self.height
Returns self.height.
self.new(data : Slice(UInt8))
Creates a new PNM::PBM object from a raw PPM file.
self.new(@width: Int32, @height : Int32, @data : Slice(UInt8))
Creates a new PNM::PBM object from attributes.
self.to_pgm
Returns the picture converted to a PNM::PGM object with a maximum value of 255.
self.to_pgm(maxval : Int32)
Returns the picture converted to a PNM::PGM object with a specified maximum value.
self.to_ppm
Returns the picture converted to a PNM::PPM object with a maximum value of 255.
self.to_ppm(maxval : Int32)
Returns the picture converted to a PNM::PPM object with a specified maximum value.
self.width
Returns self.width.
self.write(filename : String)
Writes self to a PGM file.