SmoothingMode 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定平滑處理 (反鋸齒補償) 是否套用至直線和曲線,以及填滿的區域的邊緣。
public enum class SmoothingMode
C#
public enum SmoothingMode
type SmoothingMode =
Public Enum SmoothingMode
- 繼承
名稱 | 值 | Description |
---|---|---|
AntiAlias | 4 | 指定反鋸齒呈現。 |
Default | 0 | 指定不使用反鋸齒。 |
HighQuality | 2 | 指定反鋸齒呈現。 |
HighSpeed | 1 | 指定不使用反鋸齒。 |
Invalid | -1 | 指定無效的模式。 |
None | 3 | 指定不使用反鋸齒。 |
Default
、 None
和 HighSpeed
是相等的,而且不需要套用平滑化即可指定轉譯。
AntiAlias
和 HighQuality
是相等的,並指定套用平滑的轉譯。
備註
Graphics.SmoothingMode使用 SmoothingMode
列舉指定 屬性時,不會影響文字。 若要設定文字轉譯品質,請使用 Graphics.TextRenderingHint 屬性和 TextRenderingHint 列舉。
備註
Graphics.SmoothingMode使用 SmoothingMode 列舉指定 屬性時,不會影響路徑漸層筆刷填滿的區域。 不論屬性的設定Graphics.SmoothingMode為何,使用 PathGradientBrush 物件填滿的區域會以相同方式呈現 (別名) 。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |