Picasso API
2.2
|
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. |
void ps_reset_shadow | ( | ps_context * | ctx | ) |
Disables shadowing in a context.
ctx | Pointer to an existing context object. |
void ps_set_shadow | ( | ps_context * | ctx, |
float | x_offset, | ||
float | y_offset, | ||
float | blur | ||
) |
Enables shadowing in a context.
ctx | Pointer to an existing context object. |
x_offset | Offset on horizontal from origin (0,0). |
y_offset | Offset on vertical from origin (0,0). |
blur | Specifying the amount of blur (0 ~ 1). |
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.
ctx | Pointer to an existing context object. |
color | Specifies the color of the shadow. |