Re: Add Gaussian Blur to Shape Shadow

Yue Liu <[email protected]>
Newsgroups gmane.comp.kde.devel.koffice
Message-ID <[email protected]>
Is there a simple method to blur a QPixmap object? I only found
QGraphicsBlurEffect but it only works on QGraphicsItem.

On Sat, Oct 30, 2010 at 3:38 PM, Cyrille Berger Skott
<[email protected]> wrote:
> On Saturday 30 October 2010, Yue Liu wrote:
>
>> Does that mean OOo uses other method to implement shadow effect? I
>
>> found no way to add blur effect to <draw:shadow>, but the shadow
>
>> without blur looks terrible. Should we give up <draw:shadow> and use
>
>> duplication of shapes to implement nice shadow effect?
>
> Well nothing prevent us to blur the shadow. It is possible to implement that
> in the KoShapeShadow paint function, by simply painting the shape outline in
> a temporary pixmap, blur the pixmap and then draw the pixmap.
>
> Even if OOo does not :) Nothing say that we have to have as ugly rendering
> than other office suite (actually if we can do better rendering, we will get
> extra points).
>
> --
>
> Cyrille Berger Skott
>
> _______________________________________________
> koffice-devel mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.