Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
image
master
Image
Tga
TgaPixel
Built with Crystal 1.9.2
2023-10-08 13:54:06 UTC
class
Image::Tga
Image::Tga
Reference
Object
Defined in:
image.cr
Constructors
.new
(width : Int32, height : Int32)
Class Method Summary
.read
(filename)
Instance Method Summary
#[]
(x, y)
#[]
(px)
#height
: Int32
#img_data
: Slice(UInt8)
#width
: Int32
#write
(filename)
Constructor Detail
def self.
new
(width : Int32, height : Int32)
#
[
View source
]
Class Method Detail
def self.
read
(filename)
#
[
View source
]
Instance Method Detail
def
[]
(x, y)
#
[
View source
]
def
[]
(px)
#
[
View source
]
def
height
: Int32
#
[
View source
]
def
img_data
: Slice(UInt8)
#
[
View source
]
def
width
: Int32
#
[
View source
]
def
write
(filename)
#
[
View source
]