[Digikam-devel] preview window not showing filter out
Matthias Welwarsky
matthias at welwarsky.de
Sat Feb 4 14:23:19 GMT 2012
Hi,
how can it happen that the preview image inside the editor does not show the
result of a filter? The code in putPreviewData() is a copy from the
LevelsAdjust tool. The used filter itself seems to work, because after ending
the tool the final image is correct.
This is the code of putPreviewData()
void FilmTool::putPreviewData()
{
DImg preview = filter()->getTargetImage();
d->previewWidget->setPreviewImage(preview);
// Update histogram.
if (d->destinationPreviewData)
{
delete [] d->destinationPreviewData;
}
d->destinationPreviewData = preview.copyBits();
d->gboxSettings->histogramBox()->histogram()->updateData(d-
>destinationPreviewData,
preview.width(), preview.height(), preview.sixteenBit(),
0, 0, 0, false);
}
Interestingly, the output histogram is also correct, just the preview window
doesn't show the result correctly...
br
matthias
More information about the Digikam-devel
mailing list