Picasso API  2.2
Functions
Clip
Drawing

Functions

PEXPORT void PICAPI ps_clip (ps_context *ctx)
 Clipping the current path, using the current fill rule. After called, the current path will be cleared from the context.
PEXPORT void PICAPI ps_clip_path (ps_context *ctx, const ps_path *path, ps_fill_rule rule)
 Clipping specified path, using the given fill rule.
PEXPORT void PICAPI ps_clip_rect (ps_context *ctx, const ps_rect *rect)
 Clipping specified rectangle.
PEXPORT void PICAPI ps_clip_device_rect (ps_context *ctx, const ps_rect *rect)
 The fast way to clipping specified rectangle, the clip rect can not be rotated by world matrix. (Deprecated)
PEXPORT void PICAPI ps_clip_rects (ps_context *ctx, const ps_rect *rects, unsigned int num_rects)
 Clipping specified area defined by an array of rectangles.
PEXPORT void PICAPI ps_reset_clip (ps_context *ctx)
 Clear the clipping area from the context.

Function Documentation

void ps_clip ( ps_context ctx)

Clipping the current path, using the current fill rule. After called, the current path will be cleared from the context.

Parameters:
ctxPointer to an existing context object.
See also:
ps_clip_path, ps_clip_rect, ps_clip_rects, ps_reset_clip
void ps_clip_device_rect ( ps_context ctx,
const ps_rect rect 
)

The fast way to clipping specified rectangle, the clip rect can not be rotated by world matrix. (Deprecated)

Parameters:
ctxPointer to an existing context object.
rectThe rectangle which will be clipped.
Note:
This function is deprecated, will be remove feature.
See also:
ps_clip, ps_clip_path, ps_clip_rects, ps_reset_clip, ps_clip_rect
void ps_clip_path ( ps_context ctx,
const ps_path path,
ps_fill_rule  rule 
)

Clipping specified path, using the given fill rule.

Parameters:
ctxPointer to an existing context object.
pathThe path which will be clipped.
ruleThe rule of the path.
See also:
ps_clip, ps_clip_rect, ps_clip_rects, ps_reset_clip
void ps_clip_rect ( ps_context ctx,
const ps_rect rect 
)

Clipping specified rectangle.

Parameters:
ctxPointer to an existing context object.
rectThe rectangle which will be clipped.
See also:
ps_clip, ps_clip_path, ps_clip_rects, ps_reset_clip, ps_clip_device_rect
void ps_clip_rects ( ps_context ctx,
const ps_rect rects,
unsigned int  num_rects 
)

Clipping specified area defined by an array of rectangles.

Parameters:
ctxPointer to an existing context object.
rectsThe array of rectangles which will be clipped.
num_rectsThe number of array entries.
See also:
ps_clip, ps_clip_path, ps_clip_rect, ps_reset_clip
void ps_reset_clip ( ps_context ctx)

Clear the clipping area from the context.

Parameters:
ctxPointer to an existing context object.
See also:
ps_clip, ps_clip_path, ps_clip_rect, ps_clip_rects