使用SVG.Net(https://github.com/svg-net/SVG)時,如何將Fill設定為None? 目前正在嘗試Fill=null:
let borderRect =
新的SvgRectangle(
X=SvgUnit(xPad left), Y=SvgUnit(yPad 0.f float32 layer * tl.height) 。
寬度=SvgUnit(textWidth lblTxt), 高度=SvgUnit(SvgUnitType.Pixel, fontSize * (16.f / 12.f) ) 。
Stroke=new SvgColourServer(Color.Blue), Fill = null
)
這就給出了輸出。
<rect x="50" y="250" width="87.85068" height="21.333334px" style="stroke:blue;" />
<rect x="50" y="250" width="87.85068" height="21.333334px" style="stroke:blue;fill:none" /> 如果我想:"我想要的是:我想要的是:我想要的是
uj5u.com熱心網友回復:
Fill:none等于Fill = new SolidBrush(System.Drawing.Color.Transparent)/code>
或者
Fill = SvgPaintServer.None
uj5u.com熱心網友回復:
Fill = Svg.SvgColourServer.None 似乎可以作業。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/320118.html
標籤:
