[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Add Gaussian Blur to Shape Shadow
From:       Cyrille Berger Skott <cberger () cberger ! net>
Date:       2010-10-30 7:38:53
Message-ID: 201010300938.53781.cberger () cberger ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans Mono'; font-size:9pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">On Saturday 30 October 2010, Yue Liu wrote:</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; Does that mean OOo uses \
other method to implement shadow effect? I</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">&gt; found no way to add blur effect to \
&lt;draw:shadow&gt;, but the shadow</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">&gt; without blur looks terrible. Should we give up \
&lt;draw:shadow&gt; and use</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">&gt; duplication of shapes to implement nice shadow effect?</p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">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).</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Cyrille Berger \
Skott</p></body></html>



_______________________________________________
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