Module
LocanaImageSupport
Home
In: locana/l_bitmap.rb

This module contains methods that Locana uses to look at the content of jpeg and gif images.

Methods

get_image_size, hex_dump, is_gif?, is_jpeg?, is_xpm?,
Public Instance methods
is_jpeg?(buffer) src

Returns true if the content of the buffer is a jpeg file.

is_gif?(buffer) src

Returns true if the content of the buffer is a gif file.

is_xpm?(buffer) src

Returns true if the content of the buffer is a xpm file.

get_image_size(filename) src

Returns the w, h of the image stored in filename if the file is a valid gif or jpeg. Otherwise returns nil.

hex_dump(string, lf_count=30) src

Hex dumps the string and adds a line feed every lf_count characters. string - a binary string containing the data of jpeg or gif image. lf_count - how many characters to print before printing a line feed.


Seva Software


Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com