Class Barby::RmagickOutputter
In: lib/barby/outputter/rmagick_outputter.rb
Parent: Outputter

Renders images from barcodes using RMagick

Registers the to_png, to_gif, to_jpg and to_image methods

Methods

full_height   full_width   height   length   margin   to_blob   to_gif   to_image   to_jpg   to_png   width   xdim   ydim  

Attributes

height  [RW] 
margin  [RW] 
xdim  [RW] 
ydim  [RW] 

Public Instance methods

The height of the image. This is the height of the barcode + the top and bottom margin

The full width of the image. This is the width of the barcode + the left and right margin

The height of the barcode in px For 2D barcodes this is the number of "lines" * ydim

Number of modules (xdims) on the x axis

The margin of each edge surrounding the barcode in pixels

Returns a string containint a GIF image

Returns an instance of Magick::Image

Returns a string containing a JPEG image

Returns a string containing a PNG image

The width of the barcode in px

X dimension. 1X == 1px

Y dimension. Only for 2D codes

[Validate]