You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thomas Bonfort edited this page Apr 6, 2012
·
2 revisions
Symbolization Structures
Stroke:
typedef struct {
double width; /* line width in pixels */
/* line pattern, e.g. dots, dashes, etc.. */
int patternlength;
double pattern[MS_MAXPATTERNLENGTH];
/* must not be NULL, must be a valid color */
/* color.alpha must be used if supported by the renderer */
colorObj color;
int linecap; /* MS_CJC_TRIANGLE, MS_CJC_SQUARE, MS_CJC_ROUND, MS_CJC_BUTT */
int linejoin; /* MS_CJC_BEVEL MS_CJC_ROUND MS_CJC_MITER */
double linejoinmaxsize;
} strokeStyleObj;
Fill:
typedef struct {
/* must not be NULL, must be a valid color *
* color.alpha must be used if supported by the renderer */
colorObj color;
/* if not null, use the passed tile (which is a pointer to a
* renderer specific structure) for tiling the polygon */
void *tile;
} fillStyleObj;
Booleans
supports_imagecach
supports_pixel_buffer
supports_transparent_layers
Functions
void startNewLayer(imageObj *img, double opacity)
void closeNewLayer(imageObj *img, double opacity)
imageObj *createImage(int width, int height, outputFormatObj format, colorObj bg)
int saveImage(imageObj *img, FILE *fp, outputFormatObj *format)
void freeImage(imageObj *img)
int transformShape(shapeObj *shape, rectObj extent, double cellsize)