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

Function get_pixel

src/doc/primitives.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace doc {
23
24color_t get_pixel(const Image* image, int x, int y)
25{
26 ASSERT(image);
27
28 if ((x >= 0) && (y >= 0) && (x < image->width()) && (y < image->height()))
29 return image->getPixel(x, y);
30 else
31 return -1;
32}
33
34void put_pixel(Image* image, int x, int y, color_t color)
35{

Callers 15

get_sprite_pixelFunction · 0.85
pickColorMethod · 0.85
captureSamplesMethod · 0.85
fromImageGetPixelMethod · 0.85
expect_celMethod · 0.85
trimSpriteMethod · 0.85
pickColorFromAreaMethod · 0.85
generateBoundariesMethod · 0.85
onSaveMethod · 0.85
onSaveMethod · 0.85
render_textFunction · 0.85

Calls 3

widthMethod · 0.45
heightMethod · 0.45
getPixelMethod · 0.45

Tested by 2

expect_celMethod · 0.68
TYPED_TESTFunction · 0.68