class Crpreview::Canvas

Overview

Wrapper around ChafaCanvas with methods to create, draw and print images.

Defined in:

image_renderer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : CanvasConfig) #

[View source]

Instance Method Detail

def close : Void #

[View source]
def draw_all_pixels(pixels : Pointer(UInt8), width : LibC::Int, height : LibC::Int, rowstride : LibC::Int) : Void #

[View source]
def print : String #

[View source]