test/test_helper.rb in free-image-0.6.2 vs test/test_helper.rb in free-image-0.7.0

- old
+ new

@@ -30,6 +30,20 @@ end def lena_image path = File.join(ROOT_DIR, 'test', 'images', 'lena.png') FreeImage::Bitmap.open(path) +end + +def bit16_bmp(bitfield=nil) + suffix = begin + if bitfield == 555 + 'bf555' + elsif bitfield == 565 + 'bf565' + else + '' + end + end + path = File.join(ROOT_DIR, 'test', 'images', "test16#{suffix}.bmp") + FreeImage::Bitmap.open(path) end \ No newline at end of file