Picasso API  2.8
Functions

Functions

PEXPORT void PICAPI ps_set_shadow (ps_context *ctx, float x_offset, float y_offset, float blur)
 Enables shadowing in a context. More...
 
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. More...
 
PEXPORT void PICAPI ps_reset_shadow (ps_context *ctx)
 Disables shadowing in a context. More...
 

Detailed Description

Function Documentation

◆ ps_reset_shadow()

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

◆ 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

◆ ps_set_shadow_color()

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