comparison include/mb_graph_engine_openvg.h @ 607:51dc49fd34a8 openvg

Create pattern from an image
author Thinker K.F. Li <thinker@branda.to>
date Sun, 04 Jul 2010 21:09:56 +0800
parents e21eb54c7d9c
children 6c74bc371e37
comparison
equal deleted inserted replaced
606:e21eb54c7d9c 607:51dc49fd34a8
13 */ 13 */
14 #define mbe_pattern_create_for_surface(canvas) ((mbe_pattern_t *)NULL) 14 #define mbe_pattern_create_for_surface(canvas) ((mbe_pattern_t *)NULL)
15 #define mbe_scaled_font_text_extents(scaled, utf8, extents) 15 #define mbe_scaled_font_text_extents(scaled, utf8, extents)
16 #define mbe_image_surface_get_stride(surface) (20) 16 #define mbe_image_surface_get_stride(surface) (20)
17 #define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0) 17 #define mbe_image_surface_get_format(surface) ((mb_img_fmt_t)0)
18 #define mbe_image_surface_get_height(surface) (1) 18 #define mbe_image_surface_get_height(surface) (surface)->h
19 #define mbe_image_surface_get_width(surface) (1) 19 #define mbe_image_surface_get_width(surface) (surface)->w
20 #define mbe_image_surface_get_data(surface) ((unsigned char *)NULL) 20 #define mbe_image_surface_get_data(surface) ((unsigned char *)NULL)
21 #define mbe_scaled_font_reference(scaled) ((mbe_scaled_font_t *)NULL) 21 #define mbe_scaled_font_reference(scaled) ((mbe_scaled_font_t *)NULL)
22 #define mbe_pattern_create_image(img) ((mbe_pattern_t *)NULL)
23 #define mbe_scaled_font_destroy(scaled) 22 #define mbe_scaled_font_destroy(scaled)
24 #define mbe_font_face_reference(face) ((mbe_font_face_t *)NULL) 23 #define mbe_font_face_reference(face) ((mbe_font_face_t *)NULL)
25 #define mbe_scaled_font_create(face, fnt_mtx, ctm) ((mbe_scaled_font_t *)NULL) 24 #define mbe_scaled_font_create(face, fnt_mtx, ctm) ((mbe_scaled_font_t *)NULL)
26 #define mbe_pattern_set_matrix(ptn, mtx) 25 #define mbe_pattern_set_matrix(ptn, mtx)
27 #define mbe_font_face_destroy(face) 26 #define mbe_font_face_destroy(face)
141 int stop_cnt); 140 int stop_cnt);
142 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, 141 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0,
143 co_aix x1, co_aix y1, 142 co_aix x1, co_aix y1,
144 grad_stop_t *stops, 143 grad_stop_t *stops,
145 int stop_cnt); 144 int stop_cnt);
145 extern mbe_pattern_t *mbe_pattern_create_image(mb_img_data_t *img);
146 extern void mbe_set_source_rgba(mbe_t *canvas, co_comp_t r, co_comp_t g, 146 extern void mbe_set_source_rgba(mbe_t *canvas, co_comp_t r, co_comp_t g,
147 co_comp_t b, co_comp_t a); 147 co_comp_t b, co_comp_t a);
148 /* TODO: rename n_areas to areas_cnt and make it after areas */ 148 /* TODO: rename n_areas to areas_cnt and make it after areas */
149 extern void mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas); 149 extern void mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas);
150 150