#python

import testing
setup = testing.setup_bitmap_reader_test("TIFFBitmapReader", "test_rgb_8.tif")
testing.require_similar_bitmap(setup.document, setup.source.get_property("output_bitmap"), "TIFFBitmapReader", 0)

Esempio n. 2
0
#python

import testing
setup = testing.setup_bitmap_reader_test("BitmapReader", "test_rgb_8.bmp")
testing.require_similar_bitmap(setup.document, setup.source.get_property("output_bitmap"), "BitmapReader.bmp", 0)

#python

import testing

setup = testing.setup_bitmap_reader_test("JPEGBitmapReader", "test_rgb_8.jpg")
testing.require_similar_bitmap(setup.document,
                               setup.source.get_property("output_bitmap"),
                               "JPEGBitmapReader", 0.09)
Esempio n. 4
0
#python

import testing
setup = testing.setup_bitmap_reader_test("PNGBitmapReader", "test_rgb_8.png")
testing.bitmap_size_comparison(setup.reader.output_bitmap, 200, 150)

Esempio n. 5
0
#python

import testing
setup = testing.setup_bitmap_reader_test("TIFFBitmapReader", "test_rgb_8.tif")
testing.image_comparison(setup.document,
                         setup.reader.get_property("output_bitmap"),
                         "TIFFBitmapReader", 0)
#python

import testing
setup = testing.setup_bitmap_reader_test("PNGBitmapReader", "test_rgb_8.png")
testing.require_bitmap_size(setup.source.output_bitmap, 200, 150)

#python

import testing
setup = testing.setup_bitmap_reader_test("JPEGBitmapReader", "test_rgb_8.jpg")
testing.require_similar_bitmap(setup.document, setup.source.get_property("output_bitmap"), "JPEGBitmapReader", 0.09)