MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / drawRGBBitmap

Method drawRGBBitmap

src/DisplayManager.cpp:2595–2605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2593}
2594
2595void DisplayManager_::drawRGBBitmap(int16_t x, int16_t y, const uint32_t *bitmap, int16_t w, int16_t h)
2596{
2597 for (int16_t i = 0; i < w; i++)
2598 {
2599 for (int16_t j = 0; j < h; j++)
2600 {
2601 uint32_t pixelColor = bitmap[j * w + i];
2602 matrix->drawPixel(x + i, y + j, pixelColor);
2603 }
2604 }
2605}
2606
2607void DisplayManager_::drawPixel(int16_t x0, int16_t y0, uint32_t color)
2608{

Callers 6

drawBMPMethod · 0.80
TempAppFunction · 0.80
HumAppFunction · 0.80
BatAppFunction · 0.80
LookingEyesFunction · 0.80
drawReelMethod · 0.80

Calls 1

drawPixelMethod · 0.80

Tested by

no test coverage detected