Picasso API  2.2
Functions
Shadow
Drawing

Functions

PEXPORT void PICAPI ps_set_shadow (ps_context *ctx, float x_offset, float y_offset, float blur)
 Enables shadowing in a context.
PEXPORT void PICAPI ps_set_shadow_color (ps_context *ctx, const ps_color *color)
 Set the color of shadow. Default is a black color with 1/3 alpha.
PEXPORT void PICAPI ps_reset_shadow (ps_context *ctx)
 Disables shadowing in a context.

Function Documentation

void ps_reset_shadow ( ps_context ctx)

Disables shadowing in a context.

Parameters:
ctxPointer to an existing context object.
See also:
ps_set_shadow_color, ps_set_shadow
void ps_set_shadow ( ps_context ctx,
float  x_offset,
float  y_offset,
float  blur 
)

Enables shadowing in a context.

Parameters:
ctxPointer to an existing context object.
x_offsetOffset on horizontal from origin (0,0).
y_offsetOffset on vertical from origin (0,0).
blurSpecifying the amount of blur (0 ~ 1).
See also:
ps_set_shadow_color, ps_reset_shadow
void ps_set_shadow_color ( ps_context ctx,
const ps_color color 
)

Set the color of shadow. Default is a black color with 1/3 alpha.

Parameters:
ctxPointer to an existing context object.
colorSpecifies the color of the shadow.
See also:
ps_set_shadow, ps_reset_shadow