MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / PSL_settransparencymode

Function PSL_settransparencymode

src/postscriptlight.c:4083–4093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4081}
4082
4083int 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
4095int PSL_setfill (struct PSL_CTRL *PSL, double rgb[], int outline) {
4096 /* Set fill style for polygons and switch outline on or off.

Callers 3

gmt_plotinitFunction · 0.85
PSL_beginplotFunction · 0.85
PSL_settransparencymode_Function · 0.85

Calls 1

PSL_messageFunction · 0.85

Tested by

no test coverage detected