Picasso API  2.8
Functions

Functions

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

Detailed Description

Function Documentation

◆ ps_restore()

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

◆ 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