#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapSubtract") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8.png") setup.modifier.value = 0.5 testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapSubtract", 0.001)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapMatteColorDiff") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8_alpha.png") setup.modifier.threshold = 0.95 testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapMatteColorDiff", 0)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapInvert") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8.png") testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapInvert", 0)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapThreshold") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8_alpha.png") setup.modifier.red_threshold = 0.5 setup.modifier.blue_threshold = 0.5 setup.modifier.alpha_threshold = 0.5 testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapThreshold", 0)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapColorMonochrome") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8.png") testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapColorMonochrome", 0)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapGamma") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8.png") setup.modifier.gamma = 2.2 testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapGamma", 0)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapMultiply") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8.png") setup.modifier.value = 0.7 testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapMultiply", 0)
#python import k3d import testing setup = testing.setup_bitmap_modifier_test("BitmapReader", "BitmapMatteInvert") setup.source.file = k3d.filesystem.generic_path(testing.source_path() + "/bitmaps/" + "test_rgb_8_alpha.png") testing.require_similar_bitmap(setup.document, setup.modifier.get_property("output_bitmap"), "BitmapMatteInvert", 0)