QOI::Description
Inherits Struct < Value < Object
QOI image description.
Constructors
new(width : UInt32, height : UInt32, channels : Channels = :rgba, colorspace : Colorspace = :srgb)
Instance methods
channels
Either RGB or RGBA, purely informational.
channels=(channels : Channels)
Either RGB or RGBA, purely informational.
colorspace
Either sRGB with linear alpha or all linear, purely informational.
colorspace=(colorspace : Colorspace)
Either sRGB with linear alpha or all linear, purely informational.
height
Image height in pixels (big-endian).
height=(height : UInt32)
Image height in pixels (big-endian).
is_too_big?
total_pixels
Get total size of image in pixels.
total_size
Get total size of image in bytes.
width
Image width in pixels (big-endian).
width=(width : UInt32)
Image width in pixels (big-endian).