|
Picasso API
2.8
|
Functions | |
| PEXPORT void PICAPI | ps_translate (ps_context *ctx, float tx, float ty) |
| Changes the origin of the user coordinate system in graphic context. More... | |
| PEXPORT void PICAPI | ps_scale (ps_context *ctx, float sx, float sy) |
| Changes the scale of the user coordinate system in graphic context. More... | |
| PEXPORT void PICAPI | ps_shear (ps_context *ctx, float shx, float shy) |
| Changes the shear of the user coordinate system in graphic context. More... | |
| PEXPORT void PICAPI | ps_rotate (ps_context *ctx, float angle) |
| Rotates the user coordinate system in graphic context. More... | |
| PEXPORT void PICAPI | ps_identity (ps_context *ctx) |
| Reset the current transformation matrix to identity matrix. More... | |
| PEXPORT void PICAPI | ps_transform (ps_context *ctx, const ps_matrix *matrix) |
| Transforms the user coordinate system in graphic context using a specified matrix. More... | |
| PEXPORT void PICAPI | ps_set_matrix (ps_context *ctx, const ps_matrix *matrix) |
| Modifies the current transformation matrix to the given matrix. More... | |
| PEXPORT ps_bool PICAPI | ps_get_matrix (ps_context *ctx, ps_matrix *matrix) |
| Get the current transformation matrix from graphic context. More... | |
| PEXPORT void PICAPI | ps_world_to_viewport (ps_context *ctx, ps_point *point) |
| Transform a coordinate from device space to user space. More... | |
| PEXPORT void PICAPI | ps_viewport_to_world (ps_context *ctx, ps_point *point) |
| Transform a coordinate from user space to device space. More... | |
| ps_bool ps_get_matrix | ( | ps_context * | ctx, |
| ps_matrix * | matrix | ||
| ) |
Get the current transformation matrix from graphic context.
| ctx | Pointer to an existing context object. |
| matrix | Pointer to a matrix object to receiving the current transformation. |
| void ps_identity | ( | ps_context * | ctx | ) |
Reset the current transformation matrix to identity matrix.
| ctx | Pointer to an existing context object. |
| void ps_rotate | ( | ps_context * | ctx, |
| float | angle | ||
| ) |
Rotates the user coordinate system in graphic context.
| ctx | Pointer to an existing context object. |
| angle | The angle, in radians, which to rotate the specified context. |
| void ps_scale | ( | ps_context * | ctx, |
| float | sx, | ||
| float | sy | ||
| ) |
Changes the scale of the user coordinate system in graphic context.
| ctx | Pointer to an existing context object. |
| sx | The scale factor for the X dimension. |
| sy | The scale factor for the Y dimension. |
| void ps_set_matrix | ( | ps_context * | ctx, |
| const ps_matrix * | matrix | ||
| ) |
Modifies the current transformation matrix to the given matrix.
| ctx | Pointer to an existing context object. |
| matrix | The transformation matrix to be set. |
| void ps_shear | ( | ps_context * | ctx, |
| float | shx, | ||
| float | shy | ||
| ) |
Changes the shear of the user coordinate system in graphic context.
| ctx | Pointer to an existing context object. |
| shx | The shear factor for the horizontal. |
| shy | The shear factor for the vertical. |
| void ps_transform | ( | ps_context * | ctx, |
| const ps_matrix * | matrix | ||
| ) |
Transforms the user coordinate system in graphic context using a specified matrix.
| ctx | Pointer to an existing context object. |
| matrix | The matrix to apply to the specified context's current transformation matrix. |
| void ps_translate | ( | ps_context * | ctx, |
| float | tx, | ||
| float | ty | ||
| ) |
Changes the origin of the user coordinate system in graphic context.
| ctx | Pointer to an existing context object. |
| tx | The amount, in pixels, which to translate in x direction. |
| ty | The amount, in pixels, which to translate in y direction. |
| void ps_viewport_to_world | ( | ps_context * | ctx, |
| ps_point * | point | ||
| ) |
Transform a coordinate from user space to device space.
| ctx | Pointer to an existing context object. |
| point | The point which to be transformed. |
| void ps_world_to_viewport | ( | ps_context * | ctx, |
| ps_point * | point | ||
| ) |
Transform a coordinate from device space to user space.
| ctx | Pointer to an existing context object. |
| point | The point which to be transformed. |
1.8.17