struct PNG::Gray(T)
- PNG::Gray(T)
- PNG::Color(T, 1)
- Struct
- Value
- Object
Defined in:
png/colors/gray.crConstructors
Class Method Summary
Instance Method Summary
-
#dist(other)
Get the Euclidean distance between self and other
- #g
- #g=(value : T)
- #to_g8
- #to_rgb8
-
#to_s(io : IO)
Same as
#inspect(io)
. - #to_u16
- #to_u32
- #to_u8
Instance methods inherited from struct PNG::Color(T, 1)
==(other)
==,
[](*args, **options)[](*args, **options, &) [], []=(*args, **options) []=, bytesize bytesize, channels : StaticArray(T, N) channels, channels=(channels : StaticArray(T, N)) channels=, each(*args, **options)
each(*args, **options, &) each, num_channels num_channels, size(*args, **options)
size(*args, **options, &) size, to_bytes to_bytes, to_slice to_slice, unsafe_fetch(*args, **options)
unsafe_fetch(*args, **options, &) unsafe_fetch, unsafe_put(*args, **options)
unsafe_put(*args, **options, &) unsafe_put