Mercurial > MadButterfly
comparison src/paint.c @ 473:ba64f928542b Android_Skia
Remove mbe_matrix_t type.
The struct mbe_matrix_t is defined in a layout accoriding definition
of Cairo. It is not feasible for all graphic engine. Now, we start
supporting of other graphic engine; Skia, so use type of (co_aix[6])
defined and used by MadButterfly intead of mbe_matrix_t. And, bridges
of graphic engines are responsible for translate matrics into the
matrix type of the graphic enigne.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 12 Nov 2009 21:32:58 +0800 |
parents | a417fd980228 |
children | e813ac222f48 |
comparison
equal
deleted
inserted
replaced
472:4254eaa699d0 | 473:ba64f928542b |
---|---|
326 * corresponding points in image space. It is used to resample | 326 * corresponding points in image space. It is used to resample |
327 * the image to generate pixels of result image. | 327 * the image to generate pixels of result image. |
328 */ | 328 */ |
329 void paint_image_set_matrix(paint_t *paint, co_aix matrix[6]) { | 329 void paint_image_set_matrix(paint_t *paint, co_aix matrix[6]) { |
330 paint_image_t *img_paint = (paint_image_t *)paint; | 330 paint_image_t *img_paint = (paint_image_t *)paint; |
331 mbe_matrix_t cmatrix; | 331 |
332 | 332 mbe_pattern_set_matrix(img_paint->ptn, matrix); |
333 cmatrix.xx = matrix[0]; | |
334 cmatrix.xy = matrix[1]; | |
335 cmatrix.x0 = matrix[2]; | |
336 cmatrix.yx = matrix[3]; | |
337 cmatrix.yy = matrix[4]; | |
338 cmatrix.y0 = matrix[5]; | |
339 mbe_pattern_set_matrix(img_paint->ptn, &cmatrix); | |
340 } | 333 } |
341 | 334 |
342 void paint_image_get_size(paint_t *paint, int *w, int *h) { | 335 void paint_image_get_size(paint_t *paint, int *w, int *h) { |
343 paint_image_t *ipaint = (paint_image_t *)paint; | 336 paint_image_t *ipaint = (paint_image_t *)paint; |
344 | 337 |