class StumpyTGA::TGA
- StumpyTGA::TGA
- Reference
- Object
Defined in:
stumpy_tga/tga.crConstructors
- .new(buffer : Array(RGBA), w, h, pixel_depth : UInt8, offset_x : UInt16 = 0_u16, offset_y : UInt16 = 0_u16, image_id : String = "")
- .new(buffer : Bytes, w, h, pixel_depth : UInt8, offset_x : UInt16 = 0_u16, offset_y : UInt16 = 0_u16, image_id : String = "")
Instance Method Summary
- #canvas : StumpyCore::Canvas
- #canvas=(canvas : StumpyCore::Canvas)
- #image_id : String
- #image_id=(image_id : String)
- #offset_x : UInt16
- #offset_x=(offset_x : UInt16)
- #offset_y : UInt16
- #offset_y=(offset_y : UInt16)
- #pixel_depth : UInt8
- #pixel_depth=(pixel_depth : UInt8)
Constructor Detail
def self.new(buffer : Array(RGBA), w, h, pixel_depth : UInt8, offset_x : UInt16 = 0_u16, offset_y : UInt16 = 0_u16, image_id : String = "")
#
def self.new(buffer : Bytes, w, h, pixel_depth : UInt8, offset_x : UInt16 = 0_u16, offset_y : UInt16 = 0_u16, image_id : String = "")
#