- str->resetImage(width, colorMap->getNumPixelComps(), colorMap->getBits());
+ imgStr = new ImageStream(str, width, colorMap->getNumPixelComps(),
+ colorMap->getBits());
+ imgStr->reset();
colorMap->getColor(pixBuf, &color);
fputc((int)(color.getR() * 255 + 0.5), f);
fputc((int)(color.getG() * 255 + 0.5), f);
fputc((int)(color.getB() * 255 + 0.5), f);
}
}
colorMap->getColor(pixBuf, &color);
fputc((int)(color.getR() * 255 + 0.5), f);
fputc((int)(color.getG() * 255 + 0.5), f);
fputc((int)(color.getB() * 255 + 0.5), f);
}
}