| 291 | // Set all pixels in a 24 bit bitmap to the specified RGB color value. |
| 292 | |
| 293 | void BmpSetAll(Bitmap *b, KV kv) |
| 294 | { |
| 295 | int x, y, nR, nG, nB; |
| 296 | byte *pb; |
| 297 | |
| 298 | nR = RgbR(kv); nG = RgbG(kv); nB = RgbB(kv); |
| 299 | for (y = 0; y < b->y; y++) { |
| 300 | pb = _PbXY(b, 0, y); |
| 301 | for (x = 0; x < b->x; x++) { |
| 302 | _SetRGB(pb, nR, nG, nB); |
| 303 | pb += cbPixelK; |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | |
| 309 | // Copy a rectangle from one bitmap structure to a different rectangle in |
no test coverage detected