| 2277 | } |
| 2278 | |
| 2279 | void |
| 2280 | Bitmap::copyRowPortion(int x1, |
| 2281 | int x2, |
| 2282 | int y, |
| 2283 | const Bitmap& other) |
| 2284 | { |
| 2285 | const char* srcBitmap = other.getBitmapAt(x1, y); |
| 2286 | char* dstBitmap = getBitmapAt(x1, y); |
| 2287 | const char* end = dstBitmap + (x2 - x1); |
| 2288 | |
| 2289 | while (dstBitmap < end) { |
| 2290 | *dstBitmap = /**srcBitmap == PIXEL_UNAVAILABLE ? 0 : */ *srcBitmap; |
| 2291 | ++dstBitmap; |
| 2292 | ++srcBitmap; |
| 2293 | } |
| 2294 | } |
| 2295 | |
| 2296 | void |
| 2297 | Image::copyBitmapPortion(const RectI& roi, |
no test coverage detected