convertToQImage still does not work correctly
Casper Boemann
cbr at boemann.dk
Mon Jan 17 20:28:11 CET 2005
hmm, are you sure the image() function of the paintdevice is valid. probably
needs to be a layer.
I should add some checking code I know
casper
----- Original Message -----
From: "Michael Thaler" <michael.thaler at ph.tum.de>
To: "For developers of Krayon (previously known as KImageShop)"
<kimageshop at kde.org>
Sent: Monday, January 17, 2005 7:57 PM
Subject: convertToQImage still does not work correctly
> Hello,
>
> I just tried the new version of convertToQImage and it does crash Krita:
>
> I used the following code:
>
> void KisRainDropsFilter::process(KisPaintDeviceSP src, KisPaintDeviceSP
dst,
> KisFilterConfiguration* configuration, const QRect& rect, KisTileCommand*
> ktc)
> {
> kdDebug() << "Raindropsfilter 2 called!\n";
>
> QImage img = src->convertToQImage(0);
>
> Q_INT32 width = img.width();
> Q_INT32 height = img.height();
>
> kdDebug() << "width:" << width << " heigth:" << height << "\n";
> ...
> }
>
> and get the following output:
>
> krita: no color strategy
> krita: no color strategy
> krita: Raindropsfilter 2 called!
> krita: width:-2090526348 heigth:3133
> KCrash: Application 'krita' crashing...
>
> Sorry, I don't have time to fix this, right now...
>
> Michael
> _______________________________________________
> kimageshop mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>
More information about the kimageshop
mailing list