diff options
author | pacien | 2017-12-28 01:37:38 +0100 |
---|---|---|
committer | pacien | 2017-12-28 01:37:38 +0100 |
commit | fa154af5a72964931bae432dbb96abf45465e6cb (patch) | |
tree | 0c7adc96bf90d7c0d0936d3123ae50200ccdd214 /include | |
parent | a1aa852d6e443394f79e7d1198b0bc2e5e6d2d66 (diff) | |
download | morpher-fa154af5a72964931bae432dbb96abf45465e6cb.tar.gz |
Add canvas from image init. func.
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/painter/canvas.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/painter/canvas.h b/include/painter/canvas.h index e354938..ba6d4da 100644 --- a/include/painter/canvas.h +++ b/include/painter/canvas.h | |||
@@ -25,10 +25,25 @@ typedef struct { | |||
25 | * Parameters: | 25 | * Parameters: |
26 | * width - the width in pixels | 26 | * width - the width in pixels |
27 | * height - the height in pixels | 27 | * height - the height in pixels |
28 | * | ||
29 | * Returns: | ||
30 | * The initialised canvas | ||
28 | */ | 31 | */ |
29 | Canvas *canvas_create(IntVector width, IntVector height); | 32 | Canvas *canvas_create(IntVector width, IntVector height); |
30 | 33 | ||
31 | /** | 34 | /** |
35 | * Function: canvas_create_from_image | ||
36 | * Initialises a canvas with an image loaded from the given path. | ||
37 | * | ||
38 | * Parameters: | ||
39 | * *fpath - path to the base image file | ||
40 | * | ||
41 | * Returns: | ||
42 | * The initialised canvas | ||
43 | */ | ||
44 | Canvas *canvas_create_from_image(const char *fpath); | ||
45 | |||
46 | /** | ||
32 | * Function: canvas_destroy | 47 | * Function: canvas_destroy |
33 | * Frees all memory allocated to a canvas. | 48 | * Frees all memory allocated to a canvas. |
34 | * | 49 | * |