Re: Add Gaussian Blur to Shape Shadow
Yue Liu <[email protected]>
| Newsgroups | gmane.comp.kde.devel.koffice |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 > [email protected] > https://mail.kde.org/mailman/listinfo/koffice-devel >