lib/chunky_png/canvas/png_encoding.rb
# Encodes the canvas according to the PNG format specification with a given color mode.
# @param [Integer] color_mode The color mode to use for encoding.
# @param [Integer] bit_depth The bit depth of the image.
# @param [Integer] filtering The filtering method to use.
# @return [String] The PNG encoded canvas as string.
Encodes the canvas according to the PNG format specification with a given color mode.
Encodes the canvas according to the PNG format specification with a given color mode .
def encode_png_image_without_interlacing(color_mode, bit_depth = 8, filtering = ChunkyPNG::FILTER_NONE)
        stream = "".b
        encode_png_image_pass_to_stream(stream, color_mode, bit_depth, filtering)
        stream
      end
def encode_png_image_without_interlacing ( color_mode , bit_depth = 8 , filtering = ChunkyPNG :: FILTER_NONE ) stream = "" . b encode_png_image_pass_to_stream ( stream , color_mode , bit_depth , filtering ) stream end
Encodes the canvas according to the PNG format specification with a given color mode.
Encodes the canvas according to the PNG format specification with a given color mode .
The PNG encoded canvas as string.
The PNG encoded canvas as string .
String
color_mode
<not_specific>
bit_depth
<not_specific>
filtering
<not_specific>
<not_specific>
filtering The filtering method to use.
filtering The filtering method to use .