class W3MImageDisplay::Image

Defined in:

w3m_image_display/image.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String) #

[View source]

Instance Method Detail

def clear #

Remove the image


[View source]
def draw(x, y, w, h, stretch = true, centre = true) #

Draw using terminal columns and lines

Starting cell, then max size

Stretch determines if the image should be made to fit the box

centre determines if space should be added around the image if it is made smaller


[View source]
def draw_pixel(x, y, w, h) #

Draw using pixels


[View source]
def size #

Size of the image file


[View source]
def sync #

[View source]
def sync_communication #

[View source]