| 2401 | } |
| 2402 | |
| 2403 | void |
| 2404 | Bitmap::copyRowPortion(int x1, |
| 2405 | int x2, |
| 2406 | int y, |
| 2407 | const Bitmap& other) |
| 2408 | { |
| 2409 | const char* srcBitmap = other.getBitmapAt(x1, y); |
| 2410 | char* dstBitmap = getBitmapAt(x1, y); |
| 2411 | const char* end = dstBitmap + (x2 - x1); |
| 2412 | |
| 2413 | assert(srcBitmap && dstBitmap); |
| 2414 | while (dstBitmap < end) { |
| 2415 | *dstBitmap = /**srcBitmap == PIXEL_UNAVAILABLE ? 0 : */ *srcBitmap; |
| 2416 | ++dstBitmap; |
| 2417 | ++srcBitmap; |
| 2418 | } |
| 2419 | } |
| 2420 | |
| 2421 | void |
| 2422 | Image::copyBitmapPortion(const RectI& roi, |
no test coverage detected