private void CopyToXyzw(PixelArea <TColor> area, int sourceX, int sourceY, int width, int height) { for (int y = 0; y < height; y++) { BufferPointer <TColor> source = this.GetRowPointer(sourceX, sourceY + y); BufferPointer <byte> destination = area.GetRowPointer(y); Operations.ToXyzwBytes(source, destination, width); } }
private void CopyFromXyzw(PixelArea <TColor> area, int targetX, int targetY, int width, int height) { for (int y = 0; y < height; y++) { BufferPointer <byte> source = area.GetRowPointer(y); BufferPointer <TColor> destination = this.GetRowPointer(targetX, targetY + y); Operations.PackFromXyzwBytes(source, destination, width); } }