Class: Contrek::Bitmaps::CustomBitmap
- Defined in:
- lib/contrek/bitmaps/custom_bitmap.rb
Instance Method Summary collapse
-
#initialize(w:, h:) ⇒ CustomBitmap
constructor
A new instance of CustomBitmap.
Methods inherited from PngBitmap
#clear, #draw_line, #h, #hsv_at, #inspect, #resize_h, #rgb_value_at, #save, #to_tmp_file, #value_at, #value_set, #w
Methods inherited from Bitmap
Methods included from Painting
#bitmap_colors, direct_draw_polygons, #draw_line
Constructor Details
#initialize(w:, h:) ⇒ CustomBitmap
4 5 6 |
# File 'lib/contrek/bitmaps/custom_bitmap.rb', line 4 def initialize(w:, h:) @image = ChunkyPNG::Image.new(w, h, ChunkyPNG::Color::TRANSPARENT) end |