Picasso API
2.8
|
Typedefs | |
typedef enum _ps_composite | ps_composite |
Compositing operations for graphics context. | |
typedef enum _ps_filter | ps_filter |
Graphics quality for rendering an image. | |
typedef enum _ps_fill_rule | ps_fill_rule |
Fill rules for graphics. | |
Enumerations | |
enum | _ps_composite { COMPOSITE_CLEAR, COMPOSITE_SRC, COMPOSITE_SRC_OVER, COMPOSITE_SRC_IN, COMPOSITE_SRC_OUT, COMPOSITE_SRC_ATOP, COMPOSITE_DST, COMPOSITE_DST_OVER, COMPOSITE_DST_IN, COMPOSITE_DST_OUT, COMPOSITE_DST_ATOP, COMPOSITE_XOR, COMPOSITE_DARKEN, COMPOSITE_LIGHTEN, COMPOSITE_OVERLAY, COMPOSITE_SCREEN, COMPOSITE_MULTIPLY, COMPOSITE_PLUS, COMPOSITE_MINUS, COMPOSITE_EXCLUSION, COMPOSITE_DIFFERENCE, COMPOSITE_SOFTLIGHT, COMPOSITE_HARDLIGHT, COMPOSITE_BURN, COMPOSITE_DODGE, COMPOSITE_CONTRAST, COMPOSITE_INVERT, COMPOSITE_INVERT_BLEND, COMPOSITE_HUE, COMPOSITE_SATURATION, COMPOSITE_COLOR, COMPOSITE_LUMINOSITY, COMPOSITE_ERROR } |
Compositing operations for graphics context. More... | |
enum | _ps_filter { FILTER_NEAREST, FILTER_BILINEAR, FILTER_GAUSSIAN, FILTER_BICUBIC, FILTER_QUADRIC, FILTER_UNKNOWN } |
Graphics quality for rendering an image. More... | |
enum | _ps_fill_rule { FILL_RULE_WINDING, FILL_RULE_EVEN_ODD, FILL_RULE_ERROR } |
Fill rules for graphics. More... | |
Functions | |
PEXPORT ps_composite PICAPI | ps_set_composite_operator (ps_context *ctx, ps_composite composite) |
Set composites opertaions for graphics context. More... | |
PEXPORT ps_filter PICAPI | ps_set_filter (ps_context *ctx, ps_filter filter) |
Set interpolation filter for graphic context. More... | |
PEXPORT ps_fill_rule PICAPI | ps_set_fill_rule (ps_context *ctx, ps_fill_rule rule) |
Set fill rule for graphic context. More... | |
PEXPORT float PICAPI | ps_set_alpha (ps_context *ctx, float alpha) |
Set the opacity level for objects drawn in graphic context. More... | |
PEXPORT float PICAPI | ps_set_gamma (ps_context *ctx, float gamma) |
Set the gamma value for the graphic context. More... | |
PEXPORT void PICAPI | ps_set_antialias (ps_context *ctx, ps_bool antialias) |
Set whether the Anti-aliasing should be turn on. More... | |
PEXPORT float PICAPI | ps_set_blur (ps_context *ctx, float blur) |
Set the blur level for the graphic context. More... | |
enum _ps_composite |
Compositing operations for graphics context.
enum _ps_fill_rule |
enum _ps_filter |
Graphics quality for rendering an image.
float ps_set_alpha | ( | ps_context * | ctx, |
float | alpha | ||
) |
Set the opacity level for objects drawn in graphic context.
ctx | Pointer to an existing context object. |
alpha | A value that specifies the opacity level from transparent to opaque(0 ~ 1). Default level is opaque (1). |
void ps_set_antialias | ( | ps_context * | ctx, |
ps_bool | antialias | ||
) |
Set whether the Anti-aliasing should be turn on.
ctx | Pointer to an existing context object. |
antialias | Boolean value whether the anti-aliasing is turn on. (True default) |
float ps_set_blur | ( | ps_context * | ctx, |
float | blur | ||
) |
Set the blur level for the graphic context.
ctx | Pointer to an existing context object. |
blur | A value that specifies the blur level (0 ~ 1). Default value is none blur (0). |
ps_composite ps_set_composite_operator | ( | ps_context * | ctx, |
ps_composite | composite | ||
) |
Set composites opertaions for graphics context.
ctx | Pointer to an existing context object. |
composite | The Composite operation to be set. |
ps_fill_rule ps_set_fill_rule | ( | ps_context * | ctx, |
ps_fill_rule | rule | ||
) |
Set fill rule for graphic context.
ctx | Pointer to an existing context object. |
rule | The fill rule to be set. |
ps_filter ps_set_filter | ( | ps_context * | ctx, |
ps_filter | filter | ||
) |
Set interpolation filter for graphic context.
ctx | Pointer to an existing context object. |
filter | The interpolation filter to be set. |
float ps_set_gamma | ( | ps_context * | ctx, |
float | gamma | ||
) |
Set the gamma value for the graphic context.
ctx | Pointer to an existing context object. |
gamma | A value that specifies the gamma (0 ~ 3). Default value is 1. |