lib/chunky_png/chunk.rb
# Returns the truecolor entry to be replaced by transparent pixels,
#
# This method should only be used for images having color mode
# ChunkyPNG::COLOR_TRUECOLOR (2).
#
# @return [Integer] The color to replace with fully transparent pixels.
Returns the truecolor entry to be replaced by transparent pixels,
This method should only be used for images having color mode
ChunkyPNG::COLOR_TRUECOLOR (2).
Returns the truecolor entry to be replaced by transparent pixels This method should only be used for images having color mode ChunkyPNG :: COLOR_TRUECOLOR ( 2 ) .
def truecolor_entry(bit_depth)
        decode_method_name = :"decode_png_resample_#{bit_depth}bit_value"
        values = content.unpack("nnn").map { |c| ChunkyPNG::Canvas.send(decode_method_name, c) }
        ChunkyPNG::Color.rgb(*values)
      end
def truecolor_entry ( bit_depth ) decode_method_name = :" decode_png_resample_ #{ bit_depth } bit_value " values = content . unpack ( "nnn" ) . map { | c | ChunkyPNG :: Canvas . send ( decode_method_name , c ) } ChunkyPNG :: Color . rgb ( * values ) end
Returns the truecolor entry to be replaced by transparent pixels,
This method should only be used for images having color mode
ChunkyPNG::COLOR_TRUECOLOR (2).
Returns the truecolor entry to be replaced by transparent pixels This method should only be used for images having color mode ChunkyPNG :: COLOR_TRUECOLOR ( 2 ) .
The color to replace with fully transparent pixels.
The color to replace with fully transparent pixels .
Integer
bit_depth
<not_specific>