| 4081 | } |
| 4082 | |
| 4083 | int PSL_settransparencymode (struct PSL_CTRL *PSL, const char *mode) { |
| 4084 | /* Updates the current PDF transparency mode */ |
| 4085 | int k, ok; |
| 4086 | if (!mode || !mode[0]) return (PSL_NO_ERROR); /* Quietly returned if not given an argument */ |
| 4087 | for (k = ok = 0; !ok && k < N_PDF_TRANSPARENCY_MODES; k++) |
| 4088 | if (!strcmp (PDF_transparency_modes[k], mode)) ok = 1; |
| 4089 | if (!ok) PSL_message (PSL, PSL_MSG_ERROR, "Warning: Unknown PDF transparency mode %s - ignored\n", mode); |
| 4090 | |
| 4091 | strncpy (PSL->current.transparency_mode, mode, 15U); /* Keep one character for null terminator */ |
| 4092 | return (PSL_NO_ERROR); |
| 4093 | } |
| 4094 | |
| 4095 | int PSL_setfill (struct PSL_CTRL *PSL, double rgb[], int outline) { |
| 4096 | /* Set fill style for polygons and switch outline on or off. |
no test coverage detected