Update PNG test images, particularly to add transparency to the indexed image.

Add demonstration of transparency backing for indexed image to test suite.
This commit is contained in:
Michael R Sweet 2021-06-10 11:18:51 -04:00
parent 2fbf9dc3b2
commit 534da32343
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244
4 changed files with 26 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -1483,8 +1483,8 @@ write_png(pdfio_file_t *pdf, // I - PDF file
else
goto error;
fputs("pdfioContentTextShow(\"PNG Color\"): ", stdout);
if (pdfioContentTextShow(st, "PNG Color"))
fputs("pdfioContentTextShow(\"PNG RGB Color\"): ", stdout);
if (pdfioContentTextShow(st, "PNG RGB Color"))
puts("PASS");
else
goto error;
@ -1537,6 +1537,30 @@ write_png(pdfio_file_t *pdf, // I - PDF file
else
goto error;
fputs("pdfioContentSetFillColorDeviceRGB(0, 1, 1): ", stdout);
if (pdfioContentSetFillColorDeviceRGB(st, 0.0, 1.0, 1.0))
puts("PASS");
else
goto error;
fputs("pdfioContentPathRect(315, 387, 234, 234): ", stdout);
if (pdfioContentPathRect(st, 315, 387, 234, 234))
puts("PASS");
else
goto error;
fputs("pdfioContentFill(false): ", stdout);
if (pdfioContentFill(st, false))
puts("PASS");
else
goto error;
fputs("pdfioContentDrawImage(\"IM3\"): ", stdout);
if (pdfioContentDrawImage(st, "IM3", 324, 396, 216, 216))
puts("PASS");
else
goto error;
fputs("pdfioStreamClose: ", stdout);
if (pdfioStreamClose(st))
puts("PASS");