Sha256: 5202b453b255c0afe43066ddd3df8b228027d3c003d62751d7f6afb89d348b8d

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

require 'test/unit'
require 'lib/camellia'
include Camellia

class TestDraw < Test::Unit::TestCase
  def test_draw
    image=CamImage.new(320,240,CAM_DEPTH_8U,CAM_COLORMODEL_RGB)
    font=CamBitmapFont.new('resources/fonts/xenon2.bmp')
    image.set!(0)
    image.draw_line(0,0,320,240,cam_rgb(255,0,0))
    image.fill_color(50,100,cam_rgb(255,0,0))
    image.draw_text_bitmap('Hello World',100,140,font)
    image.save_bmp('output/drawing_ruby.bmp')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
camellia-2.7.0-i386-mswin32 test/test_draw.rb
camellia-2.5.10-i486-linux test/test_draw.rb
camellia-2.7.0-x86-linux test/test_draw.rb