SIOX

Boudewijn Rempt boud at valdyas.org
Sun Feb 5 14:39:56 CET 2006


On Sunday 05 February 2006 14:38, Michael Thaler wrote:
> On Sunday 05 February 2006 14:02, Michael Thaler wrote:
> > guchar  **max;  /* caches the largest values for each column */
> > max = g_new (guchar *, region->w + 2 * xradius);
> >
> > I tried the following code:
> >
> > Q_UINT8  **max;  // caches the largest values for each column
> > max = new Q_UINT8[selectedExactRect.width() + 2 * xradius];
> >
> > But this oviously does the wrong thing. How do I have to do this in C++
>
> OK, that seems to do the trick:
>
> max = new Q_UINT8* [selectedExactRect.width() + 2 * xradius];
>
> I wonder if this is actually correct:-)

In the context of Krita, only if you're storing max values of a selection 
mask. If it's actual color channels, it's far from correct, because a single 
color channel isn't a byte in Krita, but can be anything.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20060205/1f31471b/attachment.pgp 


More information about the kimageshop mailing list