| 690 | CopyRect(*Image, 0, 0); |
| 691 | } |
| 692 | void XImage::CopyRect(const XImage& Image, INTN XPos, INTN YPos) |
| 693 | { |
| 694 | for (INTN y = 0; y < GetHeight() && (y + YPos) < Image.GetHeight(); ++y) { |
| 695 | for (INTN x = 0; x < GetWidth() && (x + XPos) < Image.GetWidth(); ++x) { |
| 696 | PixelData[y * Width + x] = Image.GetPixel(x + XPos, y + YPos); |
| 697 | } |
| 698 | } |
| 699 | } |
| 700 | |
| 701 | /* |
| 702 | * copy rect InputRect from the input Image and place to OwnRect in this image |
no test coverage detected