Class
Lbitmap
Home
In: locana/l_bitmap.rb
Parent: Object

The base class for all bitmap related classes. This is the base class for the Lpixmap classes and only provides methods that shared the other pixmap related classes. This class should not be used directly, use the Lpixmap or Lxpixmap class instead.

Methods

data_stream, data_stream_reverse_bytes, inspect, load, load_from_file, load_from_file, new, to_s, to_str,
Attributes

 [RW]  height
 [RW]  name
 [RW]  width
Public Class methods
new(name, str=nil, width=nil, height=nil) src

Creates an empty bitmap. If str is provided it will be loaded.

load_from_file(name, filename) src

Returns a Lpixmap or Lxpixmap object loaded using filename.

Public Instance methods
to_s() src

Returns a string containing the bitmap name and (width, height).

to_str() src

Returns a binary string containing the data loaded from the bitmap.

inspect() src

Alias for to_s.

load(str) src

Loads str as a xpixmap object. This method does not do anything. The other pixmap related classes need to define this.

load_from_file(filename) src

Loads the bitmap using the filename.

data_stream() src

Return the bitmap’s content as a binary string.

data_stream_reverse_bytes() src

Returns the bitmap as a binary string with each byte reverses (the mswin32 GUI binding needs this).


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