| 69 | // Functions to set or get a pixel within a 24 bit color bitmap. |
| 70 | |
| 71 | INLINE long _IbXY(CONST Bitmap *b, int x, int y) |
| 72 | { return y*(b->clRow << 2) + (x * cbPixelK); } |
| 73 | INLINE byte *_PbXY(CONST Bitmap *b, int x, int y) |
| 74 | { return &(b->rgb)[_IbXY(b, x, y)]; } |
| 75 | INLINE void _SetRGB(byte *pb, int r, int g, int b) |