D.fxBegin();
// clear the area we want to render to
m_AggregationRect.setLU(-D.w(), D.h(), 154 * g_AggregationPixelSize, 190 * g_AggregationPixelSize);
D.clip(NULL);
D.clearCol(TRANSPARENT);
... render stuff ...
C Image& i = D.fxEnd();
i.lockRead();
if (!m_AggregatedImage.is())
m_AggregatedImage.create2D(154, 190, i.type() /*IMAGE_B8G8R8A8*/, 1);
if (m_AggregatedImage.lock())
{
for (Int x = 0; x < 154; ++x)
for (Int y = 0; y < 190; ++y)
//m_AggregatedImage.color(x, y, i.color(x, y));
m_AggregatedImage.pixel(x, y, i.pixel(x, y));
m_AggregatedImage.unlock();
}
i.unlock();