[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Add Gaussian Blur to Shape Shadow
From: Yue Liu <opuspace () gmail ! com>
Date: 2010-11-01 10:38:09
Message-ID: AANLkTi=2PJiOryDRtvF_dzjcX7f648jqHzuxMX_H+QPF () mail ! gmail ! com
[Download RAW message or body]
Thanks Ariya, but the shadow blur process the shape itself, while the
KoShapeShadow is designed to draw the shadow directly.
After referenced the code in KoShapeManager::paintShape I correct all
the mistakes in my code, now only some tweaks to the arguments about
blur radius and buffer image size needed.
Here is a preview:
http://picasaweb.google.com/lh/photo/hkaYDywuHUneQtP_TMEvsg?feat=directlink
I‘ll do more tweaks then it would be ready.
On Mon, Nov 1, 2010 at 12:05 AM, Ariya Hidayat <ariya@kde.org> wrote:
>>> Is there a simple method to blur a QPixmap object? I only found
>>> QGraphicsBlurEffect but it only works on QGraphicsItem.
>>>
>>
>> There is a class BlurEffect in Karbon that can do this with a QImage. It
>> would probably be possible to use the filter framework to do a blurred
>> shadow.
>
> Which is using stack blur.
>
> Try my attempt, see
> http://ariya.blogspot.com/2010/09/art-of-blurring-shadow.html, which
> is slightly faster. The shadow blur function is only 70 lines.
>
>
> --
> Ariya Hidayat
> http://www.linkedin.com/in/ariyahidayat
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic