Mercurial > MadButterfly
comparison include/mb_graph_engine_skia.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 |
---|---|
38 int stop_cnt); | 38 int stop_cnt); |
39 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, | 39 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, |
40 co_aix x1, co_aix y1, | 40 co_aix x1, co_aix y1, |
41 grad_stop_t *stops, | 41 grad_stop_t *stops, |
42 int stop_cnt); | 42 int stop_cnt); |
43 extern mbe_pattern_t *mbe_pattern_create_image(mb_img_data_t *img); | |
43 extern void mbe_pattern_set_matrix(mbe_pattern_t *ptn, | 44 extern void mbe_pattern_set_matrix(mbe_pattern_t *ptn, |
44 const co_aix matrix[6]); | 45 const co_aix matrix[6]); |
45 extern void mbe_pattern_destroy(mbe_pattern_t *ptn); | 46 extern void mbe_pattern_destroy(mbe_pattern_t *ptn); |
46 | 47 |
47 extern int mbe_image_surface_get_stride(mbe_surface_t *surface); | 48 extern int mbe_image_surface_get_stride(mbe_surface_t *surface); |
48 extern int mbe_image_surface_get_height(mbe_surface_t *surface); | 49 extern int mbe_image_surface_get_height(mbe_surface_t *surface); |
49 extern int mbe_image_surface_get_width(mbe_surface_t *surface); | 50 extern int mbe_image_surface_get_width(mbe_surface_t *surface); |
50 extern unsigned char *mbe_image_surface_get_data(mbe_surface_t *surface); | 51 extern unsigned char *mbe_image_surface_get_data(mbe_surface_t *surface); |
51 extern mbe_surface_t *mbe_image_surface_create_from_png(const char *filename); | |
52 extern mbe_surface_t * | 52 extern mbe_surface_t * |
53 mbe_image_surface_create_for_data(unsigned char *data, | 53 mbe_image_surface_create_for_data(unsigned char *data, |
54 mb_img_fmt_t fmt, | 54 mb_img_fmt_t fmt, |
55 int width, int height, | 55 int width, int height, |
56 int stride); | 56 int stride); |