module ChunkyPNG::Canvas::StreamExporting
def to_abgr_stream
-
(String)
- The RGBA-formatted pixel data.
def to_abgr_stream pixels.pack('V*') end
def to_rgb_stream
-
(String)
- The RGB-formatted pixel data.
def to_rgb_stream pixels.pack('NX' * (width * height)) end
def to_rgba_stream
-
(String)
- The RGBA-formatted pixel data.
def to_rgba_stream pixels.pack('N*') end