| 154 | } |
| 155 | |
| 156 | static void image_scale2x(Image* dst, const Image* src, int src_w, int src_h) |
| 157 | { |
| 158 | switch (src->pixelFormat()) { |
| 159 | case IMAGE_RGB: image_scale2x_tpl<RgbTraits>(dst, src, src_w, src_h); break; |
| 160 | case IMAGE_GRAYSCALE: image_scale2x_tpl<GrayscaleTraits>(dst, src, src_w, src_h); break; |
| 161 | case IMAGE_INDEXED: image_scale2x_tpl<IndexedTraits>(dst, src, src_w, src_h); break; |
| 162 | case IMAGE_BITMAP: image_scale2x_tpl<BitmapTraits>(dst, src, src_w, src_h); break; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | void rotsprite_image(Image* bmp, const Image* spr, const Image* mask, |
| 167 | int x1, int y1, int x2, int y2, |
no test coverage detected