mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-12-26 05:18:21 +01:00
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:
parent
2fbf9dc3b2
commit
534da32343
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 |
28
testpdfio.c
28
testpdfio.c
@ -1483,8 +1483,8 @@ write_png(pdfio_file_t *pdf, // I - PDF file
|
|||||||
else
|
else
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
fputs("pdfioContentTextShow(\"PNG Color\"): ", stdout);
|
fputs("pdfioContentTextShow(\"PNG RGB Color\"): ", stdout);
|
||||||
if (pdfioContentTextShow(st, "PNG Color"))
|
if (pdfioContentTextShow(st, "PNG RGB Color"))
|
||||||
puts("PASS");
|
puts("PASS");
|
||||||
else
|
else
|
||||||
goto error;
|
goto error;
|
||||||
@ -1537,6 +1537,30 @@ write_png(pdfio_file_t *pdf, // I - PDF file
|
|||||||
else
|
else
|
||||||
goto error;
|
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);
|
fputs("pdfioStreamClose: ", stdout);
|
||||||
if (pdfioStreamClose(st))
|
if (pdfioStreamClose(st))
|
||||||
puts("PASS");
|
puts("PASS");
|
||||||
|
Loading…
Reference in New Issue
Block a user