struct

PNG::Gray(T)

Inherits PNG::Color / Indexable::Mutable / Indexable / Enumerable / Iterable / Struct / Value / Object

Constructors

new(channels : StaticArray(T, N))
Source
new(g : T)
Source

Class methods

[](g : T)
Source
color_type
Source

Instance methods

dist(other)

Get the Euclidean distance between self and other

Source
g=(value : T)
Source
to_g8
Source
to_rgb8
Source
to_s(io : IO)

Same as #inspect(io).

Source
to_u16
Source
to_u32
Source
to_u8
Source