Class: Bitmap
- Inherits:
-
Object
- Object
- Bitmap
- Defined in:
- lib/bitmap.rb
Instance Attribute Summary collapse
-
#font ⇒ Object
Returns the value of attribute font.
Instance Method Summary collapse
- #blt(x, y, src_bitmap, src_rect, opacity = 255) ⇒ Object
- #blur ⇒ Object
- #clear ⇒ Object
- #clear_rect(arg1, y = 0, width = nil, height = nil) ⇒ Object
- #dispose ⇒ Object
- #disposed? ⇒ Boolean
- #draw_text(arg1, arg2, arg3, height = nil, arg5 = nil, arg6 = nil) ⇒ Object
- #fill_rect(arg1, arg2, width = nil, height = nil, color = nil) ⇒ Object
- #get_pixel(x, y) ⇒ Object
- #gradient_fill_rect(arg1, arg2, arg3, arg4 = nil, arg5 = nil, arg6 = nil) ⇒ Object
- #height ⇒ Object
- #hue_change(hue) ⇒ Object
-
#initialize(arg1, height) ⇒ Bitmap
constructor
A new instance of Bitmap.
- #radial_blur(angle, division) ⇒ Object
- #rect ⇒ Object
- #set_pixel(x, y, color) ⇒ Object
- #stretch_blt(dest_rect, src_bitmap, src_rect, opacity = 255) ⇒ Object
- #text_size(str) ⇒ Object
- #width ⇒ Object
Constructor Details
#initialize(arg1, height) ⇒ Bitmap
Returns a new instance of Bitmap.
3 4 5 |
# File 'lib/bitmap.rb', line 3 def initialize(arg1, height) fail NotImplementedError end |
Instance Attribute Details
#font ⇒ Object
Returns the value of attribute font.
79 80 81 |
# File 'lib/bitmap.rb', line 79 def font @font end |
Instance Method Details
#blt(x, y, src_bitmap, src_rect, opacity = 255) ⇒ Object
27 28 29 |
# File 'lib/bitmap.rb', line 27 def blt(x, y, src_bitmap, src_rect, opacity = 255) fail NotImplementedError end |
#blur ⇒ Object
63 64 65 |
# File 'lib/bitmap.rb', line 63 def blur fail NotImplementedError end |
#clear ⇒ Object
43 44 45 |
# File 'lib/bitmap.rb', line 43 def clear fail NotImplementedError end |
#clear_rect(arg1, y = 0, width = nil, height = nil) ⇒ Object
47 48 49 |
# File 'lib/bitmap.rb', line 47 def clear_rect(arg1, y = 0, width = nil, height = nil) fail NotImplementedError end |
#dispose ⇒ Object
7 8 9 |
# File 'lib/bitmap.rb', line 7 def dispose fail NotImplementedError end |
#disposed? ⇒ Boolean
11 12 13 |
# File 'lib/bitmap.rb', line 11 def disposed? fail NotImplementedError end |
#draw_text(arg1, arg2, arg3, height = nil, arg5 = nil, arg6 = nil) ⇒ Object
71 72 73 |
# File 'lib/bitmap.rb', line 71 def draw_text(arg1, arg2, arg3, height = nil, arg5 = nil, arg6 = nil) fail NotImplementedError end |
#fill_rect(arg1, arg2, width = nil, height = nil, color = nil) ⇒ Object
35 36 37 |
# File 'lib/bitmap.rb', line 35 def fill_rect(arg1, arg2,width = nil, height = nil, color = nil) fail NotImplementedError end |
#get_pixel(x, y) ⇒ Object
51 52 53 |
# File 'lib/bitmap.rb', line 51 def get_pixel(x, y) fail NotImplementedError end |
#gradient_fill_rect(arg1, arg2, arg3, arg4 = nil, arg5 = nil, arg6 = nil) ⇒ Object
39 40 41 |
# File 'lib/bitmap.rb', line 39 def gradient_fill_rect(arg1, arg2, arg3, arg4 = nil, arg5 = nil, arg6 = nil) fail NotImplementedError end |
#height ⇒ Object
19 20 21 |
# File 'lib/bitmap.rb', line 19 def height fail NotImplementedError end |
#hue_change(hue) ⇒ Object
59 60 61 |
# File 'lib/bitmap.rb', line 59 def hue_change(hue) fail NotImplementedError end |
#radial_blur(angle, division) ⇒ Object
67 68 69 |
# File 'lib/bitmap.rb', line 67 def radial_blur(angle, division) fail NotImplementedError end |
#rect ⇒ Object
23 24 25 |
# File 'lib/bitmap.rb', line 23 def rect fail NotImplementedError end |
#set_pixel(x, y, color) ⇒ Object
55 56 57 |
# File 'lib/bitmap.rb', line 55 def set_pixel(x, y, color) fail NotImplementedError end |
#stretch_blt(dest_rect, src_bitmap, src_rect, opacity = 255) ⇒ Object
31 32 33 |
# File 'lib/bitmap.rb', line 31 def stretch_blt(dest_rect, src_bitmap, src_rect, opacity = 255) fail NotImplementedError end |
#text_size(str) ⇒ Object
75 76 77 |
# File 'lib/bitmap.rb', line 75 def text_size(str) fail NotImplementedError end |
#width ⇒ Object
15 16 17 |
# File 'lib/bitmap.rb', line 15 def width fail NotImplementedError end |