diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2025-03-24 19:31:44 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2025-03-24 19:31:44 +0100 |
| commit | 4aa756267cdc1845b56b98995312d8b6058b1d59 (patch) | |
| tree | 8763f51b5e0233af433b105b7475fd0c00973dd5 /gunit_tests/imageDraw.cpp | |
| parent | 7e7e2b0c5a6810683caf88dcd98a4fae96cb2331 (diff) | |
debug
Diffstat (limited to 'gunit_tests/imageDraw.cpp')
| -rw-r--r-- | gunit_tests/imageDraw.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gunit_tests/imageDraw.cpp b/gunit_tests/imageDraw.cpp index 3f0a93f..c327f27 100644 --- a/gunit_tests/imageDraw.cpp +++ b/gunit_tests/imageDraw.cpp @@ -130,4 +130,20 @@ TEST_F(ImageDrawTest, PaintImageTransform) { compareWithRefImage(); } +TEST_F(ImageDrawTest, PaintImageOnImage) { + VkvgContext ctx = vkvg_create(surf); + vkvg_set_source_surface(ctx, imgSurf, 0, 0); + vkvg_paint(ctx); + + fs::path imgPath2 = fs::path(GTEST_DATA_ROOT) / "filled.png"; + VkvgSurface imgSurf2 = vkvg_surface_create_from_image(dev, (char*)imgPath2.c_str()); + + vkvg_set_source_surface(ctx, imgSurf2, 50, 50); + vkvg_paint(ctx); + + vkvg_surface_destroy(imgSurf2); + vkvg_destroy(ctx); + + compareWithRefImage(); +} |