… | |
… | |
125 | rxvt_img *sub_rect (int x, int y, int width, int height); |
125 | rxvt_img *sub_rect (int x, int y, int width, int height); |
126 | rxvt_img *transform (const nv matrix[3][3]); |
126 | rxvt_img *transform (const nv matrix[3][3]); |
127 | rxvt_img *scale (int new_width, int new_height); |
127 | rxvt_img *scale (int new_width, int new_height); |
128 | rxvt_img *rotate (int cx, int cy, nv phi); |
128 | rxvt_img *rotate (int cx, int cy, nv phi); |
129 | rxvt_img *convert_format (XRenderPictFormat *format, const rgba &bg); |
129 | rxvt_img *convert_format (XRenderPictFormat *format, const rgba &bg); |
130 | rxvt_img *blend (rxvt_img *img, nv factor = 1.); |
130 | rxvt_img *tint (const rgba &c); |
|
|
131 | rxvt_img *filter (const char *name, int nparams = 0, nv *params = 0); |
131 | |
132 | |
132 | // egregiuous helper category |
133 | // egregiuous helper category |
133 | rxvt_img *replace (rxvt_img *&p) |
134 | rxvt_img *replace (rxvt_img *&p) |
134 | { |
135 | { |
135 | delete p; |
136 | delete p; |
136 | p = this; |
137 | p = this; |
137 | return this; |
138 | return this; |
138 | } |
139 | } |
139 | |
140 | |
140 | private: |
141 | /* these are considered private */ |
141 | |
|
|
142 | void destroy (); |
142 | void destroy (); |
|
|
143 | rxvt_img *new_empty (); |
143 | Picture picture (); |
144 | Picture picture (); |
144 | rxvt_img *transform (const nv *matrix); |
145 | rxvt_img *transform (const nv *matrix); |
145 | }; |
146 | }; |
146 | |
147 | |
147 | #endif |
148 | #endif |