网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

AGG第四十课SVG使用的三种管道-创新互联

The current version of SVG contains 3 pipelines:

创新互联公司是专业的桥西网站建设公司,桥西接单;提供网站设计制作、网站设计,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行桥西网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

Simple polygons:

path_storage ->

 conv_curve ->

 conv_transform ->

  conv_clip

Strokes:

path_storage ->

 conv_curve ->

 conv_stroke ->

  conv_transform ->

  conv_clip

Contoured polygons:

path_storage ->

 conv_curve ->

 conv_contour ->

  conv_transform ->

  conv_clip

> And is it doubly calculated for

> filling, then stroking (in

> case both apply)?

It is. Otherwise you would have to store the

intermediate result somewhere. But the good news is

that conv_curve works pretty fast, at least stroking

and clipping are much more time consuming tasks.

The only obvious case when we can approximate the

curves in the last step is drawing text. But again,

when it's without stroking/outlining/contouring.

>  Also what exactly does conv_contour do?

Exactly half of the work conv_stroke does. :-) It

dilates or erodes polygons depending on the sign of

the width. I used it to eliminate the defects when

joining anti-aliased polygons:https://cache.yisu.com/upload/information/20200311/29/188328.jpg> I hope you dont mind all these questions :)

Of course I don't. Afterall I myself started cooking

this porridge :-)

> If so, doesnt this give the same result each time,

> as its done before the

> conv_transform?

Yes, it does, at least seems to do :-)

But the reality is more complex. Here's a

contadiction. Yes, we could transform paths before

approximating them with line segments. But conv_stroke

and conv_contour require already decomposed path. So,

the only case we can use this order (conv_transform ->

conv_curve) is a simple filled polygon without a

"border". But the situation is even worse. I use

conv_clip that performs polygonal clipping. Such kind

of a "vectorial" clipping can work with line segments

only, so, the curves must be decomposed before

clipping. Ideally it would be fine to decompose curves

as late as possible, but if the order of the

conversions is different solid and stroked paths will

be inconsistent:https://cache.yisu.com/upload/information/20200311/29/188345.jpgEventually I decided to set my jaw and to convert the

curves in the first pipeline step. Well, this is the

whole idea of the custom pipelines - in certain cases

you can use different conversion order for the sake of

performance.

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


本文名称:AGG第四十课SVG使用的三种管道-创新互联
当前URL:http://bjjierui.cn/article/ccogdc.html

其他资讯