struct PNG::GrayAlpha(T)
- PNG::GrayAlpha(T)
- PNG::Color(T, 2)
- Struct
- Value
- Object
Defined in:
png/colors/gray_alpha.crConstructors
Class Method Summary
Instance Method Summary
- #a
- #a=(value : T)
-
#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, 2)
==(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