OSDN Git Service

test for replaceBitmapData Lossless with alpha0
[swfed/swfed.git] / src / swf_fill_style_gradient.h
1 /*
2   +----------------------------------------------------------------------+
3   | Author: yoya@awm.jp                                                  |
4   +----------------------------------------------------------------------+
5 */
6
7 #ifndef __SWF_FILL_STYLE_GRADIENT_H__
8 #define __SWF_FILL_STYLE_GRADIENT_H__
9
10 #include "swf_tag.h"
11 #include "swf_matrix.h"
12 #include "swf_gradient.h"
13
14 typedef struct swf_fill_style_gradient_ {
15     unsigned char type;
16     swf_matrix_t gradient_matrix;
17     swf_matrix_t gradient_matrix_morph; // DefineMorphShape, DefineMorphShape2
18     swf_gradient_t gradient;
19 } swf_fill_style_gradient_t;
20
21 extern int swf_fill_style_gradient_parse(bitstream_t *bs,
22                                          swf_fill_style_gradient_t *gradient,
23                                          swf_tag_t *tag);
24 extern int swf_fill_style_gradient_build(bitstream_t *bs,
25                                          swf_fill_style_gradient_t *gradient,
26                                          swf_tag_t *tag);
27 extern int swf_fill_style_gradient_print(swf_fill_style_gradient_t *gradient,
28                                          int indent_depth, swf_tag_t *tag);
29 extern int swf_fill_style_gradient_delete(swf_fill_style_gradient_t *gradient);
30
31 #endif /* __SWF_FILL_STYLE_GRADIENT_H__ */