[Digikam-devel] preview window not showing filter out

Gilles Caulier caulier.gilles at gmail.com
Sat Feb 4 15:20:24 GMT 2012


it's not a problem about preview mode ? Look on the tool preview icons
from the task bar in editor ?

Gilles Caulier

2012/2/4 Matthias Welwarsky <matthias at welwarsky.de>:
> 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
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel



More information about the Digikam-devel mailing list