module ChunkyPNG::Canvas::StreamExporting
def to_abgr_stream
-
(String)
- The RGBA-formatted pixel data.
def to_abgr_stream pixels.pack("V*") end
def to_alpha_channel_stream
-
(String)
- The 0-255 alpha values of all pixels packed as string
def to_alpha_channel_stream pixels.pack("C*") end
def to_grayscale_stream
-
(String)
- The 0-255 grayscale values of all pixels packed as string.
def to_grayscale_stream pixels.pack("nX" * pixels.length) end
def to_rgb_stream
-
(String)
- The RGB-formatted pixel data.
def to_rgb_stream pixels.pack("NX" * pixels.length) end
def to_rgba_stream
-
(String)
- The RGBA-formatted pixel data.
def to_rgba_stream pixels.pack("N*") end