Object
A Bitmap object stores the raw data representing a Bitmap graphic. Decoding the bitmap from a file (e.g. .bmp, .jpg, .png) is done outside of Ruby using a "Bitmap Load" primitive. There is no way to create or draw onto a Bitmap using Ruby - if you need to do this, you will have to use the regular FlowStone bitmap primitives.
Note that Bitmaps cannot be stored within a RubyEdit primitive between sessions - you must always send them, along with a trigger, to a RubyEdit Bitmap input at load time before you will be able to draw them.
Drawing a bitmap to the screen is handled by the View class using the drawBitmap and drawBitmapSection methods. The View object on which you draw a Bitmap also defines what algorithm will be used if the Bitmap has to be rotated or rescaled, using the setInterpolationMode method.
Return the height of the bitmap measured in the current 'grid' units. See the View class for a description of how 'grids' relate to pixels.
Contrast with heightPixels that returns the height in pixels.
# File GUI_Classes.rb, line 1063 def height #DUMMY end
Return the height of the bitmap measured in pixels.
Contrast with height that returns the height in 'grid' units.
# File GUI_Classes.rb, line 1085 def heightPixels #DUMMY end
Return the width of the bitmap measured in the current 'grid' units. See the View class for a description of how 'grids' relate to pixels.
Contrast with widthPixels that returns the width in pixels.
# File GUI_Classes.rb, line 1051 def width #DUMMY end
Return the width of the bitmap measured in pixels.
Contrast with width that returns the width in 'grid' units.
# File GUI_Classes.rb, line 1074 def widthPixels #DUMMY end
Generated with the Darkfish Rdoc Generator 2.