class
Opal::Image::Encoder
- Opal::Image::Encoder
- Reference
- Object
Defined in:
opal/image/protocols.crClass Method Summary
-
.encode_half_block(colors : Array(Array(Color)), width : Int32, height : Int32) : String
Encodes a 2D RGB grid into universal Unicode TrueColor half-block characters (▀)
-
.encode_iterm2(data : Bytes, filename : String = "image.png", width : Int32 | Nil = nil, height : Int32 | Nil = nil) : String
Encodes raw file or image bytes into iTerm2 inline image escape sequence
-
.encode_kitty(rgb_bytes : Bytes, width : Int32, height : Int32) : String
Encodes raw RGB bytes (width * height * 3) into Kitty graphics protocol escape chunks
Class Method Detail
Encodes a 2D RGB grid into universal Unicode TrueColor half-block characters (▀)
def self.encode_iterm2(data : Bytes, filename : String = "image.png", width : Int32 | Nil = nil, height : Int32 | Nil = nil) : String
#
Encodes raw file or image bytes into iTerm2 inline image escape sequence
def self.encode_kitty(rgb_bytes : Bytes, width : Int32, height : Int32) : String
#
Encodes raw RGB bytes (width * height * 3) into Kitty graphics protocol escape chunks