The current version of SVG contains 3 pipelines:
創(chuàng)新互聯(lián)公司是專業(yè)的橋西網(wǎng)站建設(shè)公司,橋西接單;提供網(wǎng)站設(shè)計制作、網(wǎng)站設(shè)計,網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行橋西網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!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.
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
網(wǎng)站題目:AGG第四十課SVG使用的三種管道-創(chuàng)新互聯(lián)
文章地址:http://aaarwkj.com/article12/ccogdc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站、外貿(mào)建站、網(wǎng)站排名、服務(wù)器托管、響應(yīng)式網(wǎng)站、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容