class ChunkyPNG::Chunk::Transparency

def grayscale_entry(bit_depth)

Returns:
  • (Integer) - The (grayscale) color to replace with fully
def grayscale_entry(bit_depth)
  value = ChunkyPNG::Canvas.send(:"decode_png_resample_#{bit_depth}bit_value", content.unpack("n")[0])
  ChunkyPNG::Color.grayscale(value)
end