MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / image_scale2x

Function image_scale2x

src/doc/algorithm/rotsprite.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static 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
166void rotsprite_image(Image* bmp, const Image* spr, const Image* mask,
167 int x1, int y1, int x2, int y2,

Callers 1

rotsprite_imageFunction · 0.85

Calls 1

pixelFormatMethod · 0.45

Tested by

no test coverage detected