Picasso API  2.2
Functions
Fill
Drawing

Functions

PEXPORT void PICAPI ps_set_source_color (ps_context *ctx, const ps_color *color)
 Set a Color to the context, it is used to fill a graphic object.
PEXPORT void PICAPI ps_set_source_image (ps_context *ctx, const ps_image *image)
 Set a image to the context, it is used to fill a graphic object.
PEXPORT void PICAPI ps_set_source_pattern (ps_context *ctx, const ps_pattern *pattern)
 Set a pattern to the context, it is used to fill a graphic object.
PEXPORT void PICAPI ps_set_source_gradient (ps_context *ctx, const ps_gradient *gradient)
 Set a gradient to the context, it is used to fill a graphic object.
PEXPORT void PICAPI ps_set_source_canvas (ps_context *ctx, const ps_canvas *canvas)
 Set a canvas to the context, it is used to fill a graphic object.

Function Documentation

void ps_set_source_canvas ( ps_context ctx,
const ps_canvas canvas 
)

Set a canvas to the context, it is used to fill a graphic object.

Parameters:
ctxPointer to an existing context object.
canvasThe canvas to be set.
See also:
ps_set_source_color, ps_set_source_image, ps_set_source_pattern, ps_set_source_gradient
void ps_set_source_color ( ps_context ctx,
const ps_color color 
)

Set a Color to the context, it is used to fill a graphic object.

Parameters:
ctxPointer to an existing context object.
colorThe color to be set.
See also:
ps_set_source_image, ps_set_source_pattern, ps_set_source_gradient, ps_set_source_canvas
void ps_set_source_gradient ( ps_context ctx,
const ps_gradient gradient 
)

Set a gradient to the context, it is used to fill a graphic object.

Parameters:
ctxPointer to an existing context object.
gradientThe gradient to be set.
See also:
ps_set_source_color, ps_set_source_image, ps_set_source_pattern, ps_set_source_canvas
void ps_set_source_image ( ps_context ctx,
const ps_image image 
)

Set a image to the context, it is used to fill a graphic object.

Parameters:
ctxPointer to an existing context object.
imageThe image to be set.
See also:
ps_set_source_color, ps_set_source_pattern, ps_set_source_gradient, ps_set_source_canvas
void ps_set_source_pattern ( ps_context ctx,
const ps_pattern pattern 
)

Set a pattern to the context, it is used to fill a graphic object.

Parameters:
ctxPointer to an existing context object.
patternThe pattern to be set.
See also:
ps_set_source_color, ps_set_source_image, ps_set_source_gradient, ps_set_source_canvas