Class Prawn::Images::PNG
In: lib/prawn/images/png.rb
Parent: Object

A convenience class that wraps the logic for extracting the parts of a PNG image that we need to embed them in a PDF

Methods

Attributes

alpha_channel  [R] 
bits  [R] 
color_type  [R] 
compression_method  [R] 
filter_method  [R] 
height  [R] 
img_data  [R] 
interlace_method  [R] 
palette  [R] 
scaled_height  [RW] 
scaled_width  [RW] 
transparency  [R] 
width  [R] 

Public Class methods

Process a new PNG image

data:A binary string of PNG data

Public Instance methods

number of color components to each pixel

number of bits used per pixel

split the alpha channel data from the raw image data in images where it‘s required.

[Validate]