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

Method putPixel

src/doc/algorithm/rotate.cpp:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 void putPixel(const Image* spr, int spr_x, int spr_y) {
259 ASSERT(m_it != m_end);
260
261 int c = get_pixel_fast<RgbTraits>(spr, spr_x, spr_y);
262 if ((rgba_geta(m_mask_color) == 0) || ((c & rgba_rgb_mask) != (m_mask_color & rgba_rgb_mask)))
263 *m_it = rgba_blender_normal(*m_it, c);
264 }
265
266private:
267 color_t m_mask_color;

Callers 2

resize_imageFunction · 0.45
draw_scanlineFunction · 0.45

Calls 2

rgba_getaFunction · 0.85
rgba_blender_normalFunction · 0.85

Tested by

no test coverage detected