Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crypnm
master
PNM
PBMImage
Generated using Crystal 1.14.0
2024-11-26 09:19:29 UTC
class
PNM::
PBMImage
PNM::PBMImage
Reference
Object
Defined in:
pnm/pbm_image.cr
Constant Summary
ASCII_MAGIC_NUMBER
=
"P1"
BINARY_MAGIC_NUMBER
=
"P4"
.bytes
Constructors
.new
(width : Int32, height : Int32)
Class Method Summary
.from_ascii
(ascii)
Instance Method Summary
#[]
(column, row)
#[]=
(column, row, value)
#height
: Int32
#to_ascii
#width
: Int32
Constructor Detail
def self.
new
(width : Int32, height : Int32)
#
[
View source
]
Class Method Detail
def self.
from_ascii
(ascii)
#
[
View source
]
Instance Method Detail
def
[]
(column, row)
#
[
View source
]
def
[]=
(column, row, value)
#
[
View source
]
def
height
: Int32
#
[
View source
]
def
to_ascii
#
[
View source
]
def
width
: Int32
#
[
View source
]