Mercurial > MadButterfly
comparison include/mb_graph_engine_cairo.h @ 602:ac2e6468a22a openvg
Replace mbe_image_surface_create_from_png() with mbe_pattern_create_image()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 02 Jul 2010 13:42:22 +0800 |
parents | 28aa5e53abaa |
children | 39d27911c3ae |
comparison
equal
deleted
inserted
replaced
601:8863d23cea4b | 602:ac2e6468a22a |
---|---|
8 #include "mb_img_ldr.h" | 8 #include "mb_img_ldr.h" |
9 | 9 |
10 /*! \defgroup mb_ge_cairo MadButterfly Graphic Engine with Cairo | 10 /*! \defgroup mb_ge_cairo MadButterfly Graphic Engine with Cairo |
11 * @{ | 11 * @{ |
12 */ | 12 */ |
13 #define mbe_image_surface_create_from_png cairo_image_surface_create_from_png | |
14 #define mbe_pattern_create_for_surface cairo_pattern_create_for_surface | 13 #define mbe_pattern_create_for_surface cairo_pattern_create_for_surface |
15 #define mbe_scaled_font_text_extents cairo_scaled_font_text_extents | 14 #define mbe_scaled_font_text_extents cairo_scaled_font_text_extents |
16 #define mbe_image_surface_get_stride cairo_image_surface_get_stride | 15 #define mbe_image_surface_get_stride cairo_image_surface_get_stride |
17 #define mbe_image_surface_get_height cairo_image_surface_get_height | 16 #define mbe_image_surface_get_height cairo_image_surface_get_height |
18 #define mbe_image_surface_get_width cairo_image_surface_get_width | 17 #define mbe_image_surface_get_width cairo_image_surface_get_width |
80 int stop_cnt); | 79 int stop_cnt); |
81 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, | 80 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, |
82 co_aix x1, co_aix y1, | 81 co_aix x1, co_aix y1, |
83 grad_stop_t *stops, | 82 grad_stop_t *stops, |
84 int stop_cnt); | 83 int stop_cnt); |
84 extern mbe_pattern_t *mbe_pattern_create_image(mb_img_data_t *img); | |
85 extern void mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas); | 85 extern void mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas); |
86 | 86 |
87 | 87 |
88 static void mbe_pattern_set_matrix(mbe_pattern_t *ptn, | 88 static void mbe_pattern_set_matrix(mbe_pattern_t *ptn, |
89 const co_aix matrix[6]) { | 89 const co_aix matrix[6]) { |