Picasso API  2.2
Functions
State
Drawing

Functions

PEXPORT void PICAPI ps_save (ps_context *ctx)
 Pushes a copy of the current graphics state on to stack for context.
PEXPORT void PICAPI ps_restore (ps_context *ctx)
 Set the current graphics state to the state most recently saved.

Function Documentation

void ps_restore ( ps_context ctx)

Set the current graphics state to the state most recently saved.

Parameters:
ctxPointer to an existing context object.
See also:
ps_save
void ps_save ( ps_context ctx)

Pushes a copy of the current graphics state on to stack for context.

Parameters:
ctxPointer to an existing context object. The graphics state saved are:
  • Image filter
  • Font object
  • Gamma value
  • Alpha value
  • Blur value
  • Text stroke color
  • Text fill color
  • Compositing method
  • Transform matrix
  • Line width
  • Line cap
  • Line join
  • Line dash
  • Stroke object
  • Source object
  • Fill color
  • Fill rule
  • Clip region
  • Shadow parameters
See also:
ps_restore