module StumpyJPEG::ColorModel

Defined in:

stumpy_jpeg/color_model.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.from_number_of_components(n) #

Returns a ColorModel corresponding to n components


[View source]

Instance Method Detail

abstract def compose_canvas(matrices : Array(Matrix)) #

Composes a Canvas using each matrix as a component


[View source]
abstract def decompose_canvas(canvas : Canvas) #

Decomposes a Canvas into component matrices


[View source]
abstract def number_of_components #

Returns the number of components used for this ColorModel


[View source]